Skip to content

Commit 37869f4

Browse files
committed
log --graph: do not accept log --graphbogus
An obvious fix to the argument parser. Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent f53bc09 commit 37869f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

revision.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
12021202
get_commit_format(arg+8, revs);
12031203
continue;
12041204
}
1205-
if (!prefixcmp(arg, "--graph")) {
1205+
if (!strcmp(arg, "--graph")) {
12061206
revs->topo_order = 1;
12071207
revs->rewrite_parents = 1;
12081208
revs->graph = graph_init(revs);

0 commit comments

Comments
 (0)