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

2013-07-12 Thread Doug Bell
Updated the documentation to describe the new behavior. Doug Bell (1): show-ref: make --head always show the HEAD ref Documentation/git-show-ref.txt | 10 ++ builtin/show-ref.c | 8 ++-- 2 files changed, 12 insertions(+), 6 deletions(-) -- 1.7.12.4 -- To

[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-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 -

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

2013-07-16 Thread Doug Bell
Added the test that Junio wrote, just need to take some more time to understand it. Thanks for the tests! -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

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

2013-07-16 Thread Doug Bell
-ref command. Signed-off-by: Doug Bell Tested-by: Junio C Hamano --- Documentation/git-show-ref.txt | 10 ++- builtin/show-ref.c | 8 +- t/t1403-show-ref.sh| 167 + 3 files changed, 179 insertions(+), 6 deletions(-) create mode

[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