Skip to contentSkip to conversation

git-show-branch: show the right things when "--heads" or "--tags" is specified

PATCH New M_ 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore

M_

author
#0 lore raw

PATCH 1/1 git-show-branch: show the right things when "--heads" or "--tags" is specified

---

 show-branch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

26c0f04b8a370ac9943bb409b8cd5e7370263f41

show-branch.c +1 -1
index c742246..2aeabd9 100644
@@ -515,7 +515,7 @@ int main(int ac, char **av)
        if (all_heads + all_tags)
                snarf_refs(all_heads, all_tags);
 
-       if (ac) {
+       if (ac + all_heads + all_tags) {
                while (0 < ac) {
                        append_one_rev(*av);
                        ac--; av++;

--
1.0.0b