# [PATCH] git-show-branch: show the right things when "--heads" or "--tags" is specified

1 messages from 2005-12-23 to 2005-12-23. Participants: M_.
Thread: https://gitlist.dev/t/2917

## M_, 2005-12-23 16:35

Subject: [PATCH] git-show-branch: show the right things when "--heads" or "--tags" is specified
Message-ID: <200512231735.36092.barra_cuda@katamail.com>
URL: https://gitlist.dev/e/200512231735.36092.barra_cuda%40katamail.com

```

---

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

26c0f04b8a370ac9943bb409b8cd5e7370263f41
diff --git a/show-branch.c b/show-branch.c
index c742246..2aeabd9 100644
--- a/show-branch.c
+++ b/show-branch.c
@@ -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

```
