From 077be78d7ff0d44cab311da315b2f8dbd2a0d57b Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Sun, 26 Mar 2017 09:42:29 +0700 Subject: refs.c: make get_main_ref_store() public and use it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Junio C Hamano --- refs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'refs.h') diff --git a/refs.h b/refs.h index 2d6b6263fc..a6cd12267f 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 */ -- cgit v1.3-5-g9baa