summaryrefslogtreecommitdiff
path: root/refs
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2017-03-26 02:42:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-03-27 17:23:39 (GMT)
commit077be78d7ff0d44cab311da315b2f8dbd2a0d57b (patch)
tree1be9188fd97c11e6de6bf0de2a62ca49c62972b0 /refs
parent378dc9103a6b36ecac5f63eb0d5a87f573081094 (diff)
downloadgit-077be78d7ff0d44cab311da315b2f8dbd2a0d57b.zip
git-077be78d7ff0d44cab311da315b2f8dbd2a0d57b.tar.gz
git-077be78d7ff0d44cab311da315b2f8dbd2a0d57b.tar.bz2
refs.c: make get_main_ref_store() public and use it
get_ref_store() will soon be renamed to get_submodule_ref_store(). Together with future get_worktree_ref_store(), the three functions provide an appropriate ref store for different operation modes. New APIs will be added to operate directly on ref stores. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs')
-rw-r--r--refs/files-backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c
index 9676cd3..b62f374 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -3163,7 +3163,7 @@ int set_worktree_head_symref(const char *gitdir, const char *target, const char
* backends. This function needs to die.
*/
struct files_ref_store *refs =
- files_downcast(get_ref_store(NULL), 0, "set_head_symref");
+ files_downcast(get_main_ref_store(), 0, "set_head_symref");
static struct lock_file head_lock;
struct ref_lock *lock;