]> git.ipfire.org Git - thirdparty/git.git/commit
diff-format.adoc: 'git diff-files' prints two lines for unmerged files
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Fri, 15 May 2026 15:48:10 +0000 (15:48 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 May 2026 13:21:37 +0000 (22:21 +0900)
commit4cd5d8a3c84a7d6f66f9bed67c1b974043b8a639
tree77a4bebb061c7f0eb5890a5e4d1e06b9fb0fd4bf
parent15abb27e3a12f8cf423eeca679634168ae40c526
diff-format.adoc: 'git diff-files' prints two lines for unmerged files

Since 10637b84d9 (diff-files: -1/-2/-3 to diff against unmerged stage.,
2005-11-29), for unmerged entries 'git diff-files' print both an
"unmerged" line ('U'), as well as an "in-place edit" line ('M')
comparing stage 2 (by default) with the working tree. The "Raw output
format" documentation however mentions that all commands print a single
line per changed file. Adjust diff-format.adoc to also mention this
special case, for completeness.

Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/diff-format.adoc