]> source.dussan.org Git - jgit.git/commit
Add a separate type for the identity in a push certificate 94/50394/4
authorDave Borowitz <dborowitz@google.com>
Wed, 17 Jun 2015 17:12:22 +0000 (13:12 -0400)
committerDave Borowitz <dborowitz@google.com>
Thu, 18 Jun 2015 13:50:12 +0000 (09:50 -0400)
commite49e7b4bd4148f1ad50b015deccc33c5085f6427
treee3d0e77ca5dfee3f865b6df31c29a601ede470f8
parentb822f9b51d9a430ce17e11daf7f4022f32b50600
Add a separate type for the identity in a push certificate

These differ subtly from a PersonIdent, because they can contain
anything that is a valid User ID passed to gpg --local-user. Upstream
git push --signed will just take the configuration value from
user.signingkey and pass that verbatim in both --local-user and the
pusher field of the certificate. This does not necessarily contain an
email address, which means the parsing implementation ends up being
substantially different from RawParseUtils.parsePersonIdent.
Nonetheless, we try hard to match PersonIdent behavior in
questionable cases.

Change-Id: I37714ce7372ccf554b24ddbff56aa61f0b19cbae
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushCertificateIdentTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificate.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificateIdent.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificateParser.java
org.eclipse.jgit/src/org/eclipse/jgit/util/RawParseUtils.java