Re: [PATCH v6 05/17] ref-filter: move get_head_description() from branch.c

2016-05-20 Thread Karthik Nayak
> > Note that this expects that va/i18n-misc-updates topic, which > corrects the translator instruction around here, is already applied. > >> diff --git a/ref-filter.c b/ref-filter.c >> index 7d3af1c..fcb3353 100644 >> ... >> +char *get_head_description(void) >> +{ >> + struct strbuf desc =

Re: [PATCH v6 05/17] ref-filter: move get_head_description() from branch.c

2016-05-17 Thread Junio C Hamano
Karthik Nayak writes: > diff --git a/builtin/branch.c b/builtin/branch.c > index 2ecde53..141168d 100644 > --- a/builtin/branch.c > +++ b/builtin/branch.c > @@ -361,39 +361,6 @@ static void add_verbose_info(struct strbuf *out, struct > ref_array_item *item, >

[PATCH v6 05/17] ref-filter: move get_head_description() from branch.c

2016-05-15 Thread Karthik Nayak
Move the implementation of get_head_description() from branch.c to ref-filter. This gives a description of the HEAD ref if called. This is used as the refname for the HEAD ref whenever the FILTER_REFS_DETACHED_HEAD option is used. Make it public because we need it to calculate the length of the