Re: [PATCH v7 01/11] refs: make is_branch public
- From
Ramsay Jones <ramsay@ramsayjones.plus.com>
- Date
- Nov 9, 2015, 18:54 UTC
- Message-ID
- <5640EBD3.8040505@ramsayjones.plus.com>
- In-Reply-To
- <39e0a2a708fb1a42b69e45bc5c0b17d565d3662e.1447085798.git.mhagger@alum.mit.edu>
On 09/11/15 17:03, Michael Haggerty wrote:
Show 27 quoted lines
> From: David Turner <dturner@twopensource.com> > > is_branch was already non-static, but this patch declares it in the > header. > > Signed-off-by: Ronnie Sahlberg <sahlberg@google.com> > Signed-off-by: David Turner <dturner@twopensource.com> > Signed-off-by: Junio C Hamano <gitster@pobox.com> > Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> > --- > refs.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/refs.h b/refs.h > index 6d30c98..39b8edc 100644 > --- a/refs.h > +++ b/refs.h > @@ -217,6 +217,8 @@ extern void warn_dangling_symrefs(FILE *fp, const char *msg_fmt, const struct st > */ > int pack_refs(unsigned int flags); > > +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 >
I don't understand, is_branch() is already declared in refs.h, see line 67.
This is true in master, next and pu now appears to have two declarations.
ATB, Ramsay Jones