summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-09-18 19:53:12 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-09-18 19:53:12 -0700
commit01409bbf75198289591ba9dfe2c8d2370b36a058 (patch)
tree832ca39c35759bfc0654dfef58e8f7b88c74d59b /diff.c
parentMerge branch 'jc/maint-name-hash-clear' into maint (diff)
parentdiff --quiet: make it synonym to --exit-code >/dev/null (diff)
downloadtgif-01409bbf75198289591ba9dfe2c8d2370b36a058.tar.xz
Merge branch 'jc/maint-diff-quiet' into maint
* 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 5e01b2bb27..9385a36f1e 100644
--- a/diff.c
+++ b/diff.c
@@ -2400,13 +2400,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;
}
@@ -3398,10 +3391,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);