rev-list --no-merges: argument parsing fix.
authorJunio C Hamano <junkio@cox.net>
Tue, 28 Mar 2006 08:04:50 +0000 (00:04 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 28 Mar 2006 08:04:50 +0000 (00:04 -0800)
Signed-off-by: Junio C Hamano <junkio@cox.net>
revision.c

index d67718c..d7678cf 100644 (file)
@@ -587,7 +587,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
                                revs->remove_empty_trees = 1;
                                continue;
                        }
-                       if (!strncmp(arg, "--no-merges", 11)) {
+                       if (!strcmp(arg, "--no-merges")) {
                                revs->no_merges = 1;
                                continue;
                        }