X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=Documentation%2Fgit-patch-id.txt;h=b6fa2a8b399adc80bfa9acbc02c7f5cf5fb88aa6;hb=ee6566e8d70da682ac4926dd8a67ac821b2c1743;hp=9a4abd124dfd0a6ceea058c3c4105298c81e8f5a;hpb=58eaf287f1b25f6427b06bd72d8e555615828aeb;p=git.git diff --git a/Documentation/git-patch-id.txt b/Documentation/git-patch-id.txt index 9a4abd12..b6fa2a8b 100644 --- a/Documentation/git-patch-id.txt +++ b/Documentation/git-patch-id.txt @@ -3,26 +3,25 @@ git-patch-id(1) NAME ---- -git-patch-id - Some git command not yet documented. - +git-patch-id - Generate a patch ID. SYNOPSIS -------- -'git-patch-id' [ --option ] ... +'git-patch-id' < DESCRIPTION ----------- -Does something not yet documented. +A "patch ID" is nothing but a SHA1 of the diff associated with a patch, with +whitespace and line numbers ignored. As such, it's "reasonably stable", but at +the same time also reasonably unique, ie two patches that have the same "patch +ID" are almost guaranteed to be the same thing. +IOW, you can use this thing to look for likely duplicate commits. OPTIONS ------- ---option:: - Some option not yet documented. - -...:: - Some argument not yet documented. - +:: + The diff to create the ID of. Author ------