[PATCH] show-ref: make --head always show the HEAD ref

2013-07-16 Thread Doug Bell
The docs seem to say that doing git show-ref --head --tags would show both the HEAD ref and all the tag refs. However, doing both --head and either of --tags or --heads would filter out the HEAD ref. Also update the documentation to describe the new behavior and add tests for the show-re

Re: [PATCH] show-ref: make --head always show the HEAD ref

2013-07-15 Thread Junio C Hamano
Doug Bell writes: > diff --git a/builtin/show-ref.c b/builtin/show-ref.c > index 4a0310d..4b069e7 100644 > --- a/builtin/show-ref.c > +++ b/builtin/show-ref.c > @@ -31,6 +31,9 @@ static int show_ref(const char *refname, const unsigned > char *sha1, int flag, vo > const char *hex; > u

Re: [PATCH] show-ref: make --head always show the HEAD ref

2013-07-12 Thread Doug Bell
On Jul 11, 2013, at 10:41 AM, Junio C Hamano wrote: > Doug Bell writes: > >> The docs seem to say that doing >> >> git show-ref --head --tags >> >> would show both the HEAD ref and all the tag refs. However, doing >> both --head and either of --tags or --heads would filter out the HEAD >

[PATCH] show-ref: make --head always show the HEAD ref

2013-07-12 Thread Doug Bell
The docs seem to say that doing git show-ref --head --tags would show both the HEAD ref and all the tag refs. However, doing both --head and either of --tags or --heads would filter out the HEAD ref. Also update the documentation to describe the new behavior. Signed-off-by: Doug Bell -

Re: [PATCH] show-ref: make --head always show the HEAD ref

2013-07-11 Thread Junio C Hamano
Doug Bell writes: > The docs seem to say that doing > > git show-ref --head --tags > > would show both the HEAD ref and all the tag refs. However, doing > both --head and either of --tags or --heads would filter out the HEAD > ref. > > Signed-off-by: Doug Bell > --- I think this patch fel

[PATCH] show-ref: make --head always show the HEAD ref

2013-05-29 Thread Doug Bell
The docs seem to say that doing git show-ref --head --tags would show both the HEAD ref and all the tag refs. However, doing both --head and either of --tags or --heads would filter out the HEAD ref. Signed-off-by: Doug Bell --- I think this patch could be done better if I refactor the