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

[PATCH] log --graph: do not accept log --graphbogus

From
Junio C Hamano <gitster@pobox.com>
Date
May 26, 2008, 03:19 UTC
Message-ID
<7v4p8lg3b6.fsf@gitster.siamese.dyndns.org>
An obvious fix to the argument parser.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 revision.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/revision.c b/revision.c
index fb9924e..ac057e1 100644
--- a/revision.c
+++ b/revision.c
@@ -1202,7 +1202,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
 				get_commit_format(arg+8, revs);
 				continue;
 			}
-			if (!prefixcmp(arg, "--graph")) {
+			if (!strcmp(arg, "--graph")) {
 				revs->topo_order = 1;
 				revs->rewrite_parents = 1;
 				revs->graph = graph_init(revs);
-- 
1.5.5.1.467.g9bd81
Message 1 of 1 in “log --graph: do not accept log --graphbogus”
  1. log --graph: do not accept log --graphbogusJunio C Hamano, May 26, 2008

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.