aboutsummaryrefslogtreecommitdiff
path: root/refs/packed-backend.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-05-17 10:18:14 +0200
committerJunio C Hamano <gitster@pobox.com>2024-05-17 10:33:36 -0700
commit1febabff7a3945537b5cd7ec0ad4a4e8b2ba9001 (patch)
treecf3d2b9a2d3fe86049ad022bb3792b6b5182062d /refs/packed-backend.h
parent46536278a8b77de9b8726799c998b4b82ee9a7d9 (diff)
downloadgit-1febabff7a3945537b5cd7ec0ad4a4e8b2ba9001.tar.xz
refs: adjust names for `init` and `init_db` callbacks
The names of the functions that implement the `init` and `init_db` callbacks in the "files" and "packed" backends do not match the names of the callbacks, which is inconsistent. Rename them so that they match, which makes it easier to discover their respective implementations. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/packed-backend.h')
-rw-r--r--refs/packed-backend.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/refs/packed-backend.h b/refs/packed-backend.h
index 9dd8a344c3..09437ad13b 100644
--- a/refs/packed-backend.h
+++ b/refs/packed-backend.h
@@ -13,9 +13,9 @@ struct ref_transaction;
* even among packed refs.
*/
-struct ref_store *packed_ref_store_create(struct repository *repo,
- const char *gitdir,
- unsigned int store_flags);
+struct ref_store *packed_ref_store_init(struct repository *repo,
+ const char *gitdir,
+ unsigned int store_flags);
/*
* Lock the packed-refs file for writing. Flags is passed to