diff options
author | David Turner <dturner@twopensource.com> | 2016-09-04 18:08:41 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-10 00:28:14 +0200 |
commit | 6fb5acfd8f7102f53dedc887233313f233a65932 (patch) | |
tree | 0e7bfa8bb9bff754e05680d9ab913f9fd0c310c0 /refs.h | |
parent | refs: make delete_refs() virtual (diff) | |
download | git-6fb5acfd8f7102f53dedc887233313f233a65932.tar.xz git-6fb5acfd8f7102f53dedc887233313f233a65932.zip |
refs: add methods to init refs db
Alternate refs backends might not need the refs/heads directory and so
on, so we make ref db initialization part of the backend.
Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r-- | refs.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -66,6 +66,8 @@ int ref_exists(const char *refname); int is_branch(const char *refname); +extern int refs_init_db(struct strbuf *err); + /* * If refname is a non-symbolic reference that refers to a tag object, * and the tag can be (recursively) dereferenced to a non-tag object, |