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>

Philippe Blain committed Jun 13, 2022 at 12:29 UTC 7922a17d4da969c70d9382206244b6be0a7a3475
1 file changed +1 -1
Documentation/diff-format.txt
+1 -1
@@ -43,7 +43,7 @@ That is, from the left to the right:
43 . a space.
44 . sha1 for "src"; 0\{40\} if creation or unmerged.
45 . a space.
46 -. sha1 for "dst"; 0\{40\} if creation, unmerged or "look at work tree".
46 +. sha1 for "dst"; 0\{40\} if deletion, unmerged or "look at work tree".
47 . a space.
48 . status, followed by optional "score" number.
49 . a tab or a NUL when `-z` option is used.