aboutsummaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2017-03-26 09:42:29 +0700
committerJunio C Hamano <gitster@pobox.com>2017-03-27 10:23:39 -0700
commit077be78d7ff0d44cab311da315b2f8dbd2a0d57b (patch)
tree1be9188fd97c11e6de6bf0de2a62ca49c62972b0 /refs.h
parent378dc9103a6b36ecac5f63eb0d5a87f573081094 (diff)
downloadgit-077be78d7ff0d44cab311da315b2f8dbd2a0d57b.tar.gz
git-077be78d7ff0d44cab311da315b2f8dbd2a0d57b.tar.xz
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.h')
-rw-r--r--refs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/refs.h b/refs.h
index 2d6b6263f..a6cd12267 100644
--- a/refs.h
+++ b/refs.h
@@ -2,6 +2,7 @@
#define REFS_H
struct object_id;
+struct ref_store;
struct strbuf;
struct string_list;
@@ -560,4 +561,6 @@ int reflog_expire(const char *refname, const unsigned char *sha1,
int ref_storage_backend_exists(const char *name);
+struct ref_store *get_main_ref_store(void);
+
#endif /* REFS_H */