Commit 1ad2760
diff: drop dry-run redirection to /dev/null
As an added protection against dry-run diffs accidentally producing
output, we redirect diff_options.file to /dev/null. But as of the
previous patch, this now does nothing, since dry-run diffs are
implemented by setting "file" to NULL.
So we can drop this extra code with no change in behavior. This is
effectively a revert of 623f7af (diff: restore redirection to
/dev/null for diff_from_contents, 2025-10-17) and 3da4413 (diff: make
sure the other caller of diff_flush_patch_quietly() is silent,
2025-10-22), but:
1. We get a conflict because we already dropped the color_moved
handling in an earlier patch. But we just resolve the conflicts to
"theirs" (removing all of the code).
2. We retain the test from 623f7af.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent b2b5ad5 commit 1ad2760
1 file changed
+3
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6835 | 6835 | | |
6836 | 6836 | | |
6837 | 6837 | | |
6838 | | - | |
6839 | | - | |
6840 | | - | |
6841 | | - | |
6842 | | - | |
6843 | | - | |
6844 | | - | |
6845 | | - | |
6846 | 6838 | | |
6847 | 6839 | | |
6848 | 6840 | | |
6849 | 6841 | | |
6850 | 6842 | | |
6851 | 6843 | | |
6852 | | - | |
6853 | | - | |
6854 | | - | |
| 6844 | + | |
| 6845 | + | |
| 6846 | + | |
6855 | 6847 | | |
6856 | | - | |
6857 | | - | |
6858 | | - | |
6859 | | - | |
6860 | | - | |
6861 | | - | |
6862 | 6848 | | |
6863 | 6849 | | |
6864 | | - | |
6865 | | - | |
6866 | | - | |
6867 | 6850 | | |
6868 | 6851 | | |
6869 | 6852 | | |
| |||
6914 | 6897 | | |
6915 | 6898 | | |
6916 | 6899 | | |
6917 | | - | |
6918 | | - | |
6919 | | - | |
6920 | | - | |
6921 | | - | |
6922 | | - | |
6923 | | - | |
6924 | | - | |
6925 | 6900 | | |
6926 | 6901 | | |
6927 | 6902 | | |
| |||
0 commit comments