]>
Commit | Line | Data |
---|---|---|
7fc9d69f JH |
1 | git-patch-id(1) |
2 | =============== | |
3 | ||
4 | NAME | |
5 | ---- | |
52a22d1e | 6 | git-patch-id - Generate a patch ID. |
7fc9d69f JH |
7 | |
8 | SYNOPSIS | |
9 | -------- | |
52a22d1e | 10 | 'git-patch-id' < <patch> |
7fc9d69f JH |
11 | |
12 | DESCRIPTION | |
13 | ----------- | |
52a22d1e LAS |
14 | A "patch ID" is nothing but a SHA1 of the diff associated with a patch, with |
15 | whitespace and line numbers ignored. As such, it's "reasonably stable", but at | |
16 | the same time also reasonably unique, ie two patches that have the same "patch | |
17 | ID" are almost guaranteed to be the same thing. | |
7fc9d69f | 18 | |
52a22d1e | 19 | IOW, you can use this thing to look for likely duplicate commits. |
7fc9d69f JH |
20 | |
21 | OPTIONS | |
22 | ------- | |
52a22d1e LAS |
23 | <patch>:: |
24 | The diff to create the ID of. | |
7fc9d69f JH |
25 | |
26 | Author | |
27 | ------ | |
28 | Written by Linus Torvalds <torvalds@osdl.org> | |
29 | ||
30 | Documentation | |
31 | -------------- | |
32 | Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>. | |
33 | ||
34 | GIT | |
35 | --- | |
a7154e91 | 36 | Part of the gitlink:git[7] suite |
7fc9d69f | 37 |