Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2007-11-18 10:13:10 +0300
committerJunio C Hamano <gitster@pobox.com>2007-11-18 13:34:34 +0300
commitcda69f481db510e2a3f0ca8a0f4b54123c799416 (patch)
tree38cb123ef8297aef85b11759e1dbb074ac124347 /remote.c
parent9f8a15c73437abc634f2c43501105b108c51eae8 (diff)
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 'remote.c')
-rw-r--r--remote.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/remote.c b/remote.c
index 09b7aad525..bb01059083 100644
--- a/remote.c
+++ b/remote.c
@@ -696,14 +696,6 @@ static int match_explicit_refs(struct ref *src, struct ref *dst,
return -errs;
}
-static struct ref *find_ref_by_name(struct ref *list, const char *name)
-{
- for ( ; list; list = list->next)
- if (!strcmp(list->name, name))
- return list;
- return NULL;
-}
-
static const struct refspec *check_pattern_match(const struct refspec *rs,
int rs_nr,
const struct ref *src)