diff: accept --no-follow option
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index f1b044780ffb0e590f8dd1d609ae2b2c3b54b473..32ebcbbf4f4d21be34a76542f8c25acfe6b3ad7b 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -3584,6 +3584,8 @@ int diff_opt_parse(struct diff_options *options, const char **av, int ac)
                DIFF_OPT_SET(options, FIND_COPIES_HARDER);
        else if (!strcmp(arg, "--follow"))
                DIFF_OPT_SET(options, FOLLOW_RENAMES);
+       else if (!strcmp(arg, "--no-follow"))
+               DIFF_OPT_CLR(options, FOLLOW_RENAMES);
        else if (!strcmp(arg, "--color"))
                options->use_color = 1;
        else if (!prefixcmp(arg, "--color=")) {