]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: patch-id: spell out the git-diff-tree(1) form
authorKristoffer Haugsbakk <code@khaugsbakk.name>
Thu, 8 Jan 2026 06:28:19 +0000 (07:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Jan 2026 14:07:22 +0000 (06:07 -0800)
You specifically need `--patch` since the default output is a raw diff.

Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-patch-id.adoc

index abd02fccdc08624c1d41979da67757cee2667789..61498def317984e4f1bc94734b29be41ae53f0de 100644 (file)
@@ -21,7 +21,7 @@ the same time also reasonably unique, i.e., two patches that have the same
 
 The main usecase for this command is to look for likely duplicate commits.
 
-When dealing with `git diff-tree` output, it takes advantage of
+When dealing with `git diff-tree --patch` output, it takes advantage of
 the fact that the patch is prefixed with the object name of the
 commit, and outputs two 40-byte hexadecimal strings.  The first
 string is the patch ID, and the second string is the commit ID.