]> git.ipfire.org Git - thirdparty/git.git/blobdiff - refs.c
refs.c: add a public is_branch function
[thirdparty/git.git] / refs.c
diff --git a/refs.c b/refs.c
index 59fb70087a438a763cdbfb2c4e75de36d533aead..d0ddf5608ac1091766b0960364e6a1ef625829a5 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -2810,7 +2810,7 @@ static int log_ref_write(const char *refname, const unsigned char *old_sha1,
        return 0;
 }
 
-static int is_branch(const char *refname)
+int is_branch(const char *refname)
 {
        return !strcmp(refname, "HEAD") || starts_with(refname, "refs/heads/");
 }