diff options
author | Jeff King <peff@peff.net> | 2007-11-18 02:13:10 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-18 02:34:34 -0800 |
commit | cda69f481db510e2a3f0ca8a0f4b54123c799416 (patch) | |
tree | 38cb123ef8297aef85b11759e1dbb074ac124347 /cache.h | |
parent | 9f8a15c73437abc634f2c43501105b108c51eae8 (diff) | |
download | git-cda69f481db510e2a3f0ca8a0f4b54123c799416.tar.gz |
make "find_ref_by_name" a public function
This was a static in remote.c, but is generally useful.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -514,6 +514,8 @@ struct ref { #define REF_HEADS (1u << 1) #define REF_TAGS (1u << 2) +extern struct ref *find_ref_by_name(struct ref *list, const char *name); + #define CONNECT_VERBOSE (1u << 0) extern struct child_process *git_connect(int fd[2], const char *url, const char *prog, int flags); extern int finish_connect(struct child_process *conn); |