X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Fgit-patch-id.txt;h=3e560a37e835bb59f12754591c5c32bac671f57c;hb=df8baa42fe4eeb5a021ac262caf601f44d2a5746;hp=9a4abd124dfd0a6ceea058c3c4105298c81e8f5a;hpb=7fc9d69fca0ea8afab6709622b694f31662fb2ee;p=git.git diff --git a/Documentation/git-patch-id.txt b/Documentation/git-patch-id.txt index 9a4abd12..3e560a37 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 ------ @@ -34,5 +33,5 @@ Documentation by Junio C Hamano and the git-list . GIT --- -Part of the link:git.html[git] suite +Part of the gitlink:git[7] suite