From e7e0f26eb64de205acaac63da89f47aab78ba229 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Tue, 15 Jul 2014 16:02:38 -0700 Subject: refs.c: add a public is_branch function Both refs.c and fsck.c have their own private copies of the is_branch function. Delete the is_branch function from fsck.c and make the version in refs.c public. Signed-off-by: Ronnie Sahlberg Reviewed-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- refs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'refs.h') diff --git a/refs.h b/refs.h index 1440acc06c..1b223e58a1 100644 --- a/refs.h +++ b/refs.h @@ -137,6 +137,8 @@ extern int repack_without_refs(const char **refnames, int n); extern int ref_exists(const char *); +extern int is_branch(const char *refname); + /* * If refname is a non-symbolic reference that refers to a tag object, * and the tag can be (recursively) dereferenced to a non-tag object, -- cgit v1.2.3