Skip to content

Commit 01409bb

Browse files
committed
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
2 parents a3fcc05 + df58a82 commit 01409bb

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

diff.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,13 +2400,6 @@ int diff_setup_done(struct diff_options *options)
24002400
DIFF_OPT_SET(options, EXIT_WITH_STATUS);
24012401
}
24022402

2403-
/*
2404-
* If we postprocess in diffcore, we cannot simply return
2405-
* upon the first hit. We need to run diff as usual.
2406-
*/
2407-
if (options->pickaxe || options->filter)
2408-
DIFF_OPT_CLR(options, QUIET);
2409-
24102403
return 0;
24112404
}
24122405

@@ -3398,10 +3391,7 @@ static void diffcore_skip_stat_unmatch(struct diff_options *diffopt)
33983391

33993392
void diffcore_std(struct diff_options *options)
34003393
{
3401-
if (DIFF_OPT_TST(options, QUIET))
3402-
return;
3403-
3404-
if (options->skip_stat_unmatch && !DIFF_OPT_TST(options, FIND_COPIES_HARDER))
3394+
if (options->skip_stat_unmatch)
34053395
diffcore_skip_stat_unmatch(options);
34063396
if (options->break_opt != -1)
34073397
diffcore_break(options->break_opt);

0 commit comments

Comments
 (0)