summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@google.com>2014-07-15 23:02:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-07-16 20:06:41 (GMT)
commite7e0f26eb64de205acaac63da89f47aab78ba229 (patch)
tree2f31e5198ae6e3b1d6a13f093ba8fe314b359114 /refs.h
parentebc5da3208824e25a89672a3b91bd13629b215fe (diff)
downloadgit-e7e0f26eb64de205acaac63da89f47aab78ba229.zip
git-e7e0f26eb64de205acaac63da89f47aab78ba229.tar.gz
git-e7e0f26eb64de205acaac63da89f47aab78ba229.tar.bz2
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 <sahlberg@google.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/refs.h b/refs.h
index 1440acc..1b223e5 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,