aboutsummaryrefslogtreecommitdiff
path: root/refs/packed-backend.h
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@google.com>2021-12-22 18:11:52 +0000
committerJunio C Hamano <gitster@pobox.com>2021-12-22 13:51:37 -0800
commit99f0d97b736e80fb2f92f8a1a5fbc65b68c2a1b9 (patch)
tree5ec03c9d6afdc540ccc68de2bf56bc54cbb3098c /refs/packed-backend.h
parent597af311a2899bfd6640b9b107622c5795d5f998 (diff)
downloadgit-99f0d97b736e80fb2f92f8a1a5fbc65b68c2a1b9.tar.xz
refs: pass gitdir to packed_ref_store_create
This is consistent with the calling convention for ref backend creation, and avoids storing ".git/packed-refs" (the name of a regular file) in a variable called ref_store::gitdir. Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/packed-backend.h')
-rw-r--r--refs/packed-backend.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs/packed-backend.h b/refs/packed-backend.h
index f61a73ec25..9dd8a344c3 100644
--- a/refs/packed-backend.h
+++ b/refs/packed-backend.h
@@ -14,7 +14,7 @@ struct ref_transaction;
*/
struct ref_store *packed_ref_store_create(struct repository *repo,
- const char *path,
+ const char *gitdir,
unsigned int store_flags);
/*