aboutsummaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-11-21 09:14:15 -0800
committerJunio C Hamano <gitster@pobox.com>2025-11-21 09:14:15 -0800
commit3176576a5615c645aad04664fa0e70262a694761 (patch)
treef5c5caf6845ff677299417e9de0fdd06748a7b0f /diff.c
parent5e6e4854e086ba0025bc7dc11e6b475c92a2f556 (diff)
parentfa052367ef8f7829996ff15368d63edfff0e40c3 (diff)
downloadgit-3176576a5615c645aad04664fa0e70262a694761.tar.xz
Merge branch 'rs/diff-quiet-no-rename'
As "git diff --quiet" only cares about the existence of any changes, disable rename/copy detection to skip more expensive processing whose result will be discarded anyway. * rs/diff-quiet-no-rename: diff: disable rename detection with --quiet
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/diff.c b/diff.c
index a1961526c0..efa8d9773c 100644
--- a/diff.c
+++ b/diff.c
@@ -4987,6 +4987,8 @@ void diff_setup_done(struct diff_options *options)
if (options->flags.quick) {
options->output_format = DIFF_FORMAT_NO_OUTPUT;
options->flags.exit_with_status = 1;
+ options->detect_rename = 0;
+ options->flags.find_copies_harder = 0;
}
/*