From: Junio C Hamano Date: Tue, 28 Mar 2006 08:04:50 +0000 (-0800) Subject: rev-list --no-merges: argument parsing fix. X-Git-Tag: v1.3.0-rc2~34 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=5cdeae71ea7330c08cf96b581e2c7696949e3840;p=git.git rev-list --no-merges: argument parsing fix. Signed-off-by: Junio C Hamano --- diff --git a/revision.c b/revision.c index d67718c7..d7678cfa 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; }