summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-05-25 20:19:25 -0700
committerJunio C Hamano <gitster@pobox.com>2008-05-25 20:28:58 -0700
commit37869f40a817d4bf81f05cc62d9d39db7a3dc161 (patch)
treed89d01975e5de617938a2a4528120c2da94ce069 /revision.c
parentf53bc0953feaebe42ba056cbdbe5e91f930134a5 (diff)
downloadgit-37869f40a817d4bf81f05cc62d9d39db7a3dc161.tar.gz
log --graph: do not accept log --graphbogus
An obvious fix to the argument parser. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c
index fb9924e5af..ac057e1e65 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);