1GIT-PATCH-ID(1)                   Git Manual                   GIT-PATCH-ID(1)
2
3
4

NAME

6       git-patch-id - Compute unique ID for a patch
7

SYNOPSIS

9       git patch-id < <patch>
10

DESCRIPTION

12       A "patch ID" is nothing but a SHA1 of the diff associated with a patch,
13       with whitespace and line numbers ignored. As such, it’s "reasonably
14       stable", but at the same time also reasonably unique, i.e., two patches
15       that have the same "patch ID" are almost guaranteed to be the same
16       thing.
17
18       IOW, you can use this thing to look for likely duplicate commits.
19
20       When dealing with git diff-tree output, it takes advantage of the fact
21       that the patch is prefixed with the object name of the commit, and
22       outputs two 40-byte hexadecimal strings. The first string is the patch
23       ID, and the second string is the commit ID. This can be used to make a
24       mapping from patch ID to commit ID.
25

OPTIONS

27       <patch>
28           The diff to create the ID of.
29

AUTHOR

31       Written by Linus Torvalds <torvalds@osdl.org[1]>
32

DOCUMENTATION

34       Documentation by Junio C Hamano and the git-list
35       <git@vger.kernel.org[2]>.
36

GIT

38       Part of the git(1) suite
39

NOTES

41        1. torvalds@osdl.org
42           mailto:torvalds@osdl.org
43
44        2. git@vger.kernel.org
45           mailto:git@vger.kernel.org
46
47
48
49Git 1.7.4.4                       04/11/2011                   GIT-PATCH-ID(1)
Impressum