diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2019-01-15 07:42:52 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-15 10:51:21 -0800 |
commit | fa6f225e0141ec0df1e131e894a3a7d7dea168f5 (patch) | |
tree | 5508eb1b322203531c943fb4048c1d925f3c7d56 /t/t4013/diff.noellipses-diff_--no-index_--raw_dir2_dir | |
parent | Git 2.18.1 (diff) | |
download | tgif-fa6f225e0141ec0df1e131e894a3a7d7dea168f5.tar.xz |
add --edit: truncate the patch file
If there is already a .git/ADD_EDIT.patch file, we fail to truncate it
properly, which could result in very funny errors.
Of course, this file should not be left lying around. But at least in
one case, there was a stale copy, larger than the current diff. So the
result was a corrupt diff.
Let's just truncate the file when we write it and not worry about it too
much.
Reported by J Wyman.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.noellipses-diff_--no-index_--raw_dir2_dir')
0 files changed, 0 insertions, 0 deletions