--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">\r
+\r
+<article lang="en" id="git-patch-id(1)">\r
+<articleinfo>\r
+ <title>git-patch-id(1)</title>\r
+ <indexterm>\r
+ <primary>git-patch-id(1)</primary>\r
+ </indexterm>\r
+</articleinfo>\r
+<simplesect id="_name">\r
+<title>NAME</title>\r
+<simpara>git-patch-id - Compute unique ID for a patch</simpara>\r
+</simplesect>\r
+<simplesect id="_synopsis">\r
+<title>SYNOPSIS</title>\r
+<simpara><emphasis>git patch-id</emphasis> < <patch></simpara>\r
+</simplesect>\r
+<simplesect id="_description">\r
+<title>DESCRIPTION</title>\r
+<simpara>A "patch ID" is nothing but a SHA1 of the diff associated with a patch, with\r
+whitespace and line numbers ignored. As such, it’s "reasonably stable", but at\r
+the same time also reasonably unique, i.e., two patches that have the same "patch\r
+ID" are almost guaranteed to be the same thing.</simpara>\r
+<simpara>IOW, you can use this thing to look for likely duplicate commits.</simpara>\r
+<simpara>When dealing with <emphasis>git-diff-tree</emphasis> output, it takes advantage of\r
+the fact that the patch is prefixed with the object name of the\r
+commit, and outputs two 40-byte hexadecimal string. The first\r
+string is the patch ID, and the second string is the commit ID.\r
+This can be used to make a mapping from patch ID to commit ID.</simpara>\r
+</simplesect>\r
+<simplesect id="_options">\r
+<title>OPTIONS</title>\r
+<variablelist>\r
+<varlistentry>\r
+<term>\r
+<patch>\r
+</term>\r
+<listitem>\r
+<simpara>\r
+ The diff to create the ID of.\r
+</simpara>\r
+</listitem>\r
+</varlistentry>\r
+</variablelist>\r
+</simplesect>\r
+<simplesect id="_author">\r
+<title>Author</title>\r
+<simpara>Written by Linus Torvalds <<ulink url="mailto:torvalds@osdl.org">torvalds@osdl.org</ulink>></simpara>\r
+</simplesect>\r
+<simplesect id="_documentation">\r
+<title>Documentation</title>\r
+<simpara>Documentation by Junio C Hamano and the git-list <<ulink url="mailto:git@vger.kernel.org">git@vger.kernel.org</ulink>>.</simpara>\r
+</simplesect>\r
+<simplesect id="_git">\r
+<title>GIT</title>\r
+<simpara>Part of the <xref linkend="git(1)"/> suite</simpara>\r
+</simplesect>\r
+</article>\r