summaryrefslogtreecommitdiff
path: root/t/t4013/diff.diff-tree_initial_mode
diff options
context:
space:
mode:
authorLibravatar Stefan Beller <sbeller@google.com>2017-09-27 15:51:26 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-28 13:15:59 +0900
commit58aaced4442a6daae1c82318f3f9259001714505 (patch)
tree07533df7a29931396385cc552eafe62cc2ef42d5 /t/t4013/diff.diff-tree_initial_mode
parentdiff: document the new --color-moved setting (diff)
downloadtgif-58aaced4442a6daae1c82318f3f9259001714505.tar.xz
diff: correct newline in summary for renamed files
In 146fdb0dfe (diff.c: emit_diff_symbol learns about DIFF_SYMBOL_SUMMARY, 2017-06-29), the conversion from direct printing to the symbol emission dropped the new line character for renamed, copied and rewritten files. Add the emission of a newline, add a test for this case. Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Helped-by: Jeff King <peff@peff.net> Signed-off-by: Stefan Beller <sbeller@google.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff-tree_initial_mode')
-rw-r--r--t/t4013/diff.diff-tree_initial_mode3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/t4013/diff.diff-tree_initial_mode b/t/t4013/diff.diff-tree_initial_mode
new file mode 100644
index 0000000000..c47c09423e
--- /dev/null
+++ b/t/t4013/diff.diff-tree_initial_mode
@@ -0,0 +1,3 @@
+$ git diff-tree initial mode
+:100644 100755 01e79c32a8c99c557f0757da7cb6d65b3414466d 01e79c32a8c99c557f0757da7cb6d65b3414466d M file0
+$