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 string. 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>
32

DOCUMENTATION

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

GIT

37       Part of the git(7) suite
38
39
40
41
42Git 1.5.3.3                       10/09/2007                   GIT-PATCH-ID(1)
Impressum