Add 'resolve_gitlink_ref()' helper function
commit0ebde32c87da2efac5985a808e6bd4130831b7a8
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Apr 2007 04:14:26 +0000 (9 21:14 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 10 Apr 2007 20:44:16 +0000 (10 13:44 -0700)
treec94281955436c22a714a649e220a7e079842bb86
parent5d5cea67af386cfd53428f1eb404841eca8e9062
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>
refs.c
refs.h