Skip to contentSkip to conversation

log --graph: do not accept log --graphbogus

PATCH New Junio C Hamano 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 log --graph: do not accept log --graphbogus

An obvious fix to the argument parser.

---
 revision.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
revision.c +1 -1
index fb9924e..ac057e1 100644
@@ -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);
Signature · 1 line
1.5.5.1.467.g9bd81