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