summaryrefslogtreecommitdiff
path: root/Documentation/technical/signature-format.txt
diff options
context:
space:
mode:
authorLibravatar Michael J Gruber <git@drmicha.warpmail.net>2016-06-17 09:46:08 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-06-17 11:39:05 -0700
commit76f9d8bac8138d4c0caac02983ef4df7f9a51cba (patch)
treee73982f6e6c60500d750952a42c607b1ee137dec /Documentation/technical/signature-format.txt
parentGit 2.9 (diff)
downloadtgif-76f9d8bac8138d4c0caac02983ef4df7f9a51cba.tar.xz
Documentation/technical: describe signature formats
We use different types of signature formats in different places. Set up the infrastructure and overview to describe them systematically in our technical documentation. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/signature-format.txt')
-rw-r--r--Documentation/technical/signature-format.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/technical/signature-format.txt b/Documentation/technical/signature-format.txt
new file mode 100644
index 0000000000..fda4fb89e9
--- /dev/null
+++ b/Documentation/technical/signature-format.txt
@@ -0,0 +1,17 @@
+Git signature format
+====================
+
+== Overview
+
+Git uses cryptographic signatures in various places, currently objects (tags,
+commits, mergetags) and transactions (pushes). In every case, the command which
+is about to create an object or transaction determines a payload from that,
+calls gpg to obtain a detached signature for the payload (`gpg -bsa`) and
+embeds the signature into the object or transaction.
+
+Signatures always begin with `-----BEGIN PGP SIGNATURE-----`
+and end with `-----END PGP SIGNATURE-----`, unless gpg is told to
+produce RFC1991 signatures which use `MESSAGE` instead of `SIGNATURE`.
+
+The signed payload and the way the signature is embedded depends
+on the type of the object resp. transaction.