cache: convert get_graft_file to handle arbitrary repositories
This conversion was done without the #define trick used in the earlier series refactoring to have better repository access, because this function is easy to review, as all lines are converted and it has only one caller. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
d0e5dd0ed4
commit
0437a2e365
2
commit.c
2
commit.c
@ -204,7 +204,7 @@ static void prepare_commit_graft_the_repository(void)
|
||||
|
||||
if (commit_graft_prepared)
|
||||
return;
|
||||
graft_file = get_graft_file();
|
||||
graft_file = get_graft_file(the_repository);
|
||||
read_graft_file(the_repository, graft_file);
|
||||
/* make sure shallows are read */
|
||||
is_repository_shallow(the_repository);
|
||||
|
Reference in New Issue
Block a user