Signed-off-by: Ronnie Sahlberg <sahlberg@xxxxxxxxxx> --- refs-common.c | 5 +++++ refs.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/refs-common.c b/refs-common.c index f8b79e0..5f83d7e 100644 --- a/refs-common.c +++ b/refs-common.c @@ -3,6 +3,11 @@ #include "refs.h" #include "string-list.h" +int is_branch(const char *refname) +{ + return !strcmp(refname, "HEAD") || starts_with(refname, "refs/heads/"); +} + int update_ref(const char *action, const char *refname, const unsigned char *sha1, const unsigned char *oldval, int flags, struct strbuf *e) diff --git a/refs.c b/refs.c index 55bced9..70c034c 100644 --- a/refs.c +++ b/refs.c @@ -2483,11 +2483,6 @@ static int log_ref_write(const char *refname, const unsigned char *old_sha1, return 0; } -int is_branch(const char *refname) -{ - return !strcmp(refname, "HEAD") || starts_with(refname, "refs/heads/"); -} - static int write_sha1_update_reflog(struct ref_lock *lock, const unsigned char *sha1, const char *logmsg) { -- 2.0.1.556.g3edca4c -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html