Skip to content

Commit

Permalink
Merge branch 'jc/maint-diff-quiet' into maint
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Junio C Hamano committed Sep 19, 2008
2 parents a3fcc05 + df58a82 commit 01409bb
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 01409bb

Please sign in to comment.