threads / patch / 2917

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

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

## tl;dr

One message between Dec 23, 2005 and Dec 23, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

M_· Dec 23, 2005, 16:35 UTC · lore
---
 show-branch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
26c0f04b8a370ac9943bb409b8cd5e7370263f41
Show changes to show-branch.c +1 −2
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

← back to recent threads