Skip to content

Commit 7922a17

Browse files
phil-blaingitster
authored andcommitted
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 b6d8f30 ([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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dc8c8de commit 7922a17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/diff-format.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ That is, from the left to the right:
4343
. a space.
4444
. sha1 for "src"; 0\{40\} if creation or unmerged.
4545
. 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".
4747
. a space.
4848
. status, followed by optional "score" number.
4949
. a tab or a NUL when `-z` option is used.

0 commit comments

Comments
 (0)