git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
M_ <barra_cuda@katamail.com>
Date
Dec 23, 2005, 16:35 UTC
Message-ID
<200512231735.36092.barra_cuda@katamail.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
Message 1 of 1 in “git-show-branch: show the right things when "--heads" or "--tags" is specified”
  1. git-show-branch: show the right things when "--heads" or "--tags" is specifiedM_, Dec 23, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.