From: David Turner Date: Thu, 15 Oct 2015 19:46:26 GMT Subject: [PATCH v4 02/26] refs: make repack_without_refs and is_branch public Message-ID: <1444938410-2345-3-git-send-email-dturner@twopensource.com> In-Reply-To: <1444938410-2345-1-git-send-email-dturner@twopensource.com> is_branch was already non-static, but this patch declares it in the header. Signed-off-by: Ronnie Sahlberg Signed-off-by: David Turner Signed-off-by: Junio C Hamano --- refs.c | 5 +++-- refs.h | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/refs.c b/refs.c index fe71ea0..84abc82 100644 --- a/refs.c +++ b/refs.c @@ -2816,8 +2816,9 @@ int pack_refs(unsigned int flags) /* * Rewrite the packed-refs file, omitting any refs listed in - * 'refnames'. On error, leave packed-refs unchanged, write an error - * message to 'err', and return a nonzero value. + * 'refnames'. On error, packed-refs will be unchanged, the return + * value is nonzero, and a message about the error is written to the + * 'err' strbuf. * * The refs in 'refnames' needn't be sorted. `err` must not be NULL. */ diff --git a/refs.h b/refs.h index 7367a7f..8408bef 100644 --- a/refs.h +++ b/refs.h @@ -237,6 +237,8 @@ int pack_refs(unsigned int flags); int verify_refname_available(const char *newname, struct string_list *extra, struct string_list *skip, struct strbuf *err); +extern int is_branch(const char *refname); + /* * Flags controlling ref_transaction_update(), ref_transaction_create(), etc. * REF_NODEREF: act on the ref directly, instead of dereferencing -- 2.4.2.644.g97b850b-twtrsrc