File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -1845,19 +1845,18 @@ static int fill_pack_entry(const unsigned char *sha1,
1845
1845
return 1 ;
1846
1846
}
1847
1847
1848
- int find_pack_entry_the_repository ( const unsigned char * sha1 , struct pack_entry * e )
1848
+ int find_pack_entry ( struct repository * r , const unsigned char * sha1 , struct pack_entry * e )
1849
1849
{
1850
1850
struct list_head * pos ;
1851
1851
1852
- prepare_packed_git (the_repository );
1853
- if (!the_repository -> objects -> packed_git )
1852
+ prepare_packed_git (r );
1853
+ if (!r -> objects -> packed_git )
1854
1854
return 0 ;
1855
1855
1856
- list_for_each (pos , & the_repository -> objects -> packed_git_mru ) {
1856
+ list_for_each (pos , & r -> objects -> packed_git_mru ) {
1857
1857
struct packed_git * p = list_entry (pos , struct packed_git , mru );
1858
1858
if (fill_pack_entry (sha1 , e , p )) {
1859
- list_move (& p -> mru ,
1860
- & the_repository -> objects -> packed_git_mru );
1859
+ list_move (& p -> mru , & r -> objects -> packed_git_mru );
1861
1860
return 1 ;
1862
1861
}
1863
1862
}
Original file line number Diff line number Diff line change @@ -127,8 +127,7 @@ extern const struct packed_git *has_packed_and_bad(const unsigned char *sha1);
127
127
* Iff a pack file in the given repository contains the object named by sha1,
128
128
* return true and store its location to e.
129
129
*/
130
- #define find_pack_entry (r , s , e ) find_pack_entry_##r(s, e)
131
- extern int find_pack_entry_the_repository (const unsigned char * sha1 , struct pack_entry * e );
130
+ extern int find_pack_entry (struct repository * r , const unsigned char * sha1 , struct pack_entry * e );
132
131
133
132
extern int has_sha1_pack (const unsigned char * sha1 );
134
133
You can’t perform that action at this time.
0 commit comments