summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-03-28 08:04:50 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-03-28 08:04:50 (GMT)
commit5cdeae71ea7330c08cf96b581e2c7696949e3840 (patch)
tree1a3a181070b10e02951750fc3ad3249588c37f2d /revision.c
parentacb725772964ee11656543a28c303e9aa6d092c5 (diff)
downloadgit-5cdeae71ea7330c08cf96b581e2c7696949e3840.zip
git-5cdeae71ea7330c08cf96b581e2c7696949e3840.tar.gz
git-5cdeae71ea7330c08cf96b581e2c7696949e3840.tar.bz2
rev-list --no-merges: argument parsing fix.
Signed-off-by: Junio C Hamano <junkio@cox.net>
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 d67718c..d7678cf 100644
--- a/revision.c
+++ b/revision.c
@@ -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;
}