Skip to content

Mon, Oct 27, 2025, 08:11:19 PM GMT

Choose a tag to compare

@gitforwindowshelper gitforwindowshelper released this 28 Oct 12:47
diff: stop output garbled message in dry run mode

In dry run mode, diff_flush_patch() should not produce any output.
However, in commit b55e6d36eb (diff: ensure consistent diff behavior
with ignore options, 2025-08-08), only the output during the
comparison of two file contents was suppressed. For file deletions
or mode changes, diff_flush_patch() still produces output. In
run_extern_diff(), set quiet to true if in dry run mode. In
emit_diff_symbol_from_struct(), directly return if in dry run mode.

Signed-off-by: Lidong Yan <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>