aboutsummaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2007-04-09 21:14:26 -0700
committerJunio C Hamano <junkio@cox.net>2007-04-10 13:44:16 -0700
commit0ebde32c87da2efac5985a808e6bd4130831b7a8 (patch)
treec94281955436c22a714a649e220a7e079842bb86 /refs.h
parent5d5cea67af386cfd53428f1eb404841eca8e9062 (diff)
downloadgit-0ebde32c87da2efac5985a808e6bd4130831b7a8.tar.gz
git-0ebde32c87da2efac5985a808e6bd4130831b7a8.tar.xz
Add 'resolve_gitlink_ref()' helper function
This new function resolves a ref in *another* git repository. It's named for its intended use: to look up the git link to a subproject. It's not actually wired up to anything yet, but we're getting closer to having fundamental plumbing support for "links" from one git directory to another, which is the basis of subproject support. [jc: amended a FILE* leak] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
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 acedffc0e..f61f6d934 100644
--- a/refs.h
+++ b/refs.h
@@ -60,4 +60,7 @@ extern int check_ref_format(const char *target);
/** rename ref, return 0 on success **/
extern int rename_ref(const char *oldref, const char *newref, const char *logmsg);
+/** resolve ref in nested "gitlink" repository */
+extern int resolve_gitlink_ref(const char *name, const char *refname, unsigned char *result);
+
#endif /* REFS_H */