diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2016-09-04 18:08:22 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-09 15:28:13 -0700 |
commit | 424dcc7683a37d1f14aa0dd485300001cb854f6c (patch) | |
tree | 5dce65332dd68a05e624d597bfb1bf2e3893ac5b /credential.c | |
parent | resolve_ref_recursively(): new function (diff) | |
download | tgif-424dcc7683a37d1f14aa0dd485300001cb854f6c.tar.xz |
resolve_gitlink_ref(): implement using resolve_ref_recursively()
resolve_ref_recursively() can handle references in arbitrary files
reference stores, so use it to resolve "gitlink" (i.e., submodule)
references. Aside from removing redundant code, this allows submodule
lookups to benefit from the much more robust code that we use for
reading non-submodule references. And, since the code is now agnostic
about reference backends, it will work for any future references
backend (so move its definition to refs.c).
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'credential.c')
0 files changed, 0 insertions, 0 deletions