Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-09-16 11:48:16 +0400
committerJunio C Hamano <gitster@pobox.com>2008-09-16 11:48:16 +0400
commit8e909f80b41d1a14adede05b4a31f2f2caa56e55 (patch)
treeb050305f0219db93ac8ed862a4ec24eb517f0173 /diff.c
parent27551baa3eddc4111ceee13dc05850ae80c99a3e (diff)
parentdf58a8274d6865020682a6739bc59b87a9761991 (diff)
Merge branch 'jc/maint-diff-quiet'
* jc/maint-diff-quiet: diff --quiet: make it synonym to --exit-code >/dev/null diff Porcelain: do not disable auto index refreshing on -C -C
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/diff.c b/diff.c
index 21c377f88d..998dcaa5ed 100644
--- a/diff.c
+++ b/diff.c
@@ -2403,13 +2403,6 @@ int diff_setup_done(struct diff_options *options)
DIFF_OPT_SET(options, EXIT_WITH_STATUS);
}
- /*
- * If we postprocess in diffcore, we cannot simply return
- * upon the first hit. We need to run diff as usual.
- */
- if (options->pickaxe || options->filter)
- DIFF_OPT_CLR(options, QUIET);
-
return 0;
}
@@ -3397,10 +3390,7 @@ static void diffcore_skip_stat_unmatch(struct diff_options *diffopt)
void diffcore_std(struct diff_options *options)
{
- if (DIFF_OPT_TST(options, QUIET))
- return;
-
- if (options->skip_stat_unmatch && !DIFF_OPT_TST(options, FIND_COPIES_HARDER))
+ if (options->skip_stat_unmatch)
diffcore_skip_stat_unmatch(options);
if (options->break_opt != -1)
diffcore_break(options->break_opt);