From e25de75696dc99f327c8dd8e2cba937939e281ca Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sat, 28 May 2005 02:53:43 -0700 Subject: [PATCH] Pickaxe fixes. A bug in the command line argument parsing code was making pickaxe not to work at all in diff-cache and diff-files commands. Embarrassingly enough, the working pickaxe in diff-tree tells me that it was not working in these two commands from day one. This patch fixes it. Also updates the documentation to describe the --pickaxe-all option. Signed-off-by: Junio C Hamano Signed-off-by: Linus Torvalds --- diff-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'diff-cache.c') diff --git a/diff-cache.c b/diff-cache.c index 66e7bdb62..1e0fda529 100644 --- a/diff-cache.c +++ b/diff-cache.c @@ -206,7 +206,7 @@ int main(int argc, const char **argv) diff_setup_opt |= DIFF_SETUP_REVERSE; continue; } - if (!strcmp(arg, "-S")) { + if (!strncmp(arg, "-S", 2)) { pickaxe = arg + 2; continue; } -- cgit v1.2.1