X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=diff.c;h=348f71b46256657860a2f7f79598e1d9b19d6c54;hb=ec3ae6ec46ed48383ae40643990f169b65a563cc;hp=732d4c227595873bb94224da618ce5612a7415af;hpb=32a03dc165e2a65fdb20a4ddbe51eaa1e5f52c5b;p=git.git diff --git a/diff.c b/diff.c index 732d4c227..348f71b46 100644 --- a/diff.c +++ b/diff.c @@ -3626,6 +3626,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=")) {