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
11

DESCRIPTION

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

OPTIONS

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

GIT

32       Part of the git(1) suite
33
34
35
36Git 1.8.3.1                       11/19/2018                   GIT-PATCH-ID(1)
Impressum