diff options
author | Stefan Beller <sbeller@google.com> | 2018-05-17 22:51:50 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-17 23:13:10 (GMT) |
commit | 0437a2e365f3b9156097d029ca6f91cbb8bffd5e (patch) | |
tree | e588c71c154de32809a11eae3a59fbef3e0f3cdc /cache.h | |
parent | d0e5dd0ed49a8e79dab8a027ab14ee29709b47c6 (diff) | |
download | git-0437a2e365f3b9156097d029ca6f91cbb8bffd5e.zip git-0437a2e365f3b9156097d029ca6f91cbb8bffd5e.tar.gz git-0437a2e365f3b9156097d029ca6f91cbb8bffd5e.tar.bz2 |
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>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -476,7 +476,7 @@ extern const char *get_git_dir(void); extern const char *get_git_common_dir(void); extern char *get_object_directory(void); extern char *get_index_file(void); -extern char *get_graft_file(void); +extern char *get_graft_file(struct repository *r); extern int set_git_dir(const char *path); extern int get_common_dir_noenv(struct strbuf *sb, const char *gitdir); extern int get_common_dir(struct strbuf *sb, const char *gitdir); |