diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2016-09-04 18:08:25 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-09 15:28:13 -0700 |
commit | e1e33b722c50c26546335fd5a709f89726c2ea2a (patch) | |
tree | 67a5ddc35e29923e849e841567e7746dd5a3e6b1 /refs.c | |
parent | a8355bb717aaf2d5d9b3781aa78402d0053fa87a (diff) | |
download | git-e1e33b722c50c26546335fd5a709f89726c2ea2a.tar.gz |
refs: make read_raw_ref() virtual
Reference backends will be able to customize this function to implement
reference reading.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
-rw-r--r-- | refs.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1251,8 +1251,8 @@ static const char *resolve_ref_recursively(struct ref_store *refs, for (symref_count = 0; symref_count < SYMREF_MAXDEPTH; symref_count++) { unsigned int read_flags = 0; - if (read_raw_ref(refs, refname, - sha1, &sb_refname, &read_flags)) { + if (refs->be->read_raw_ref(refs, refname, + sha1, &sb_refname, &read_flags)) { *flags |= read_flags; if (errno != ENOENT || (resolve_flags & RESOLVE_REF_READING)) return NULL; |