Commit c50c431
diff: don't presume empty file when corresponding object is missing
The low-level diff code will happily produce totally bogus diff output
with a broken repository via format-patch and friends by treating missing
objects as empty files. Let's prevent that from happening any longer.
Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent e923eae commit c50c431
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2124 | 2124 | | |
2125 | 2125 | | |
2126 | 2126 | | |
2127 | | - | |
| 2127 | + | |
2128 | 2128 | | |
2129 | | - | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
2130 | 2132 | | |
| 2133 | + | |
| 2134 | + | |
2131 | 2135 | | |
2132 | 2136 | | |
2133 | 2137 | | |
| |||
0 commit comments