]> asedeno.scripts.mit.edu Git - git.git/commitdiff
log --graph: do not accept log --graphbogus
authorJunio C Hamano <gitster@pobox.com>
Mon, 26 May 2008 03:19:25 +0000 (20:19 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 May 2008 03:28:58 +0000 (20:28 -0700)
An obvious fix to the argument parser.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c

index fb9924e5af65bc52db588cb5f9be3654b6a5c962..ac057e1e65528786a479ec9b2cc02336786244c9 100644 (file)
@@ -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);