From 5cdeae71ea7330c08cf96b581e2c7696949e3840 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 28 Mar 2006 00:04:50 -0800 Subject: [PATCH] rev-list --no-merges: argument parsing fix. Signed-off-by: Junio C Hamano --- revision.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/revision.c b/revision.c index d67718c75..d7678cfab 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; } -- 2.30.2