DORMANTno replies

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

From: M_ <hidden>
Date: 2016-06-15 22:42:15
Subsystem: the rest · Maintainer: Linus Torvalds

---

 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help