X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=diff.c;h=348f71b46256657860a2f7f79598e1d9b19d6c54;hb=07432cef2c14389a591e368a779eae9d46d882bc;hp=732d4c227595873bb94224da618ce5612a7415af;hpb=74474a94f217a0499cc23346d8d094893fb46257;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=")) {