]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diff.c
cache.h: clarify documentation for git_path, et al
[thirdparty/git.git] / diff.c
diff --git a/diff.c b/diff.c
index 0f17ec5506e616b0e1383ad689226c774e0df178..7deac90532234996088ae847b32ce07f5ba36339 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -3820,9 +3820,10 @@ 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"))
+       else if (!strcmp(arg, "--no-follow")) {
                DIFF_OPT_CLR(options, FOLLOW_RENAMES);
-       else if (!strcmp(arg, "--color"))
+               DIFF_OPT_CLR(options, DEFAULT_FOLLOW_RENAMES);
+       } else if (!strcmp(arg, "--color"))
                options->use_color = 1;
        else if (skip_prefix(arg, "--color=", &arg)) {
                int value = git_config_colorbool(NULL, arg);