]> git.ipfire.org Git - thirdparty/git.git/commit
diff-format.txt: dst can be 0* SHA-1 when path is deleted, too
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Mon, 13 Jun 2022 12:29:41 +0000 (12:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Jun 2022 18:23:13 +0000 (11:23 -0700)
commit7922a17d4da969c70d9382206244b6be0a7a3475
treefe19da2e50ef03f43031b289b0ef7b91c723c058
parentdc8c8deaa6b5847733bd7df011a4c7b7d1a64e0a
diff-format.txt: dst can be 0* SHA-1 when path is deleted, too

"dst" can legitimately be "0\{40\}" for a creation patch, e.g. when
the stat information is stale, but it falls into "look at work tree"
case.  The original description in b6d8f309 ([PATCH] diff-raw format
update take #2., 2005-05-23) forgot that deletion also makes the
"dst" 0* SHA-1.

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