diff options
author | Thomas Wolf <thomas.wolf@paranor.ch> | 2019-10-23 00:55:28 +0200 |
---|---|---|
committer | Thomas Wolf <thomas.wolf@paranor.ch> | 2019-10-23 11:17:24 +0200 |
commit | 6a39da37fefd036929df9e63bf42875abd028b1f (patch) | |
tree | 55a7668caefd240dfb485c99f18dd331728be1ba /org.eclipse.jgit.test/META-INF | |
parent | d4404fb438c4cb31725a98e876cef8e3218ebd7f (diff) | |
download | jgit-6a39da37fefd036929df9e63bf42875abd028b1f.tar.gz jgit-6a39da37fefd036929df9e63bf42875abd028b1f.zip |
GPG: implement more OpenPGP UserId matching formats
Instead of just looking for a substring match of user.signingKey
in a key's user ID implement the GPG matching formats[1] for:
'=' Full exact match
'<' Full exact match of the e-mail address
'@' Substring match within the e-mail address only
'*' General case-insensitive substring match (default)
When user.signingKey is not set, the committer's e-mail address is
used by default. In that case, use '<', i.e., require an exact match
on the OpenPGP e-mail address.
Also handle the optional "0x" prefix for (partial) key fingerprints.
[1] https://www.gnupg.org/documentation/manuals/gnupg/Specify-a-User-ID.html
Bug: 550335
Change-Id: I6ce482a099ff1a0dc9de45435cd4d3ec5b504f12
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.test/META-INF')
-rw-r--r-- | org.eclipse.jgit.test/META-INF/MANIFEST.MF | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/META-INF/MANIFEST.MF b/org.eclipse.jgit.test/META-INF/MANIFEST.MF index 8d240d34e6..8043065389 100644 --- a/org.eclipse.jgit.test/META-INF/MANIFEST.MF +++ b/org.eclipse.jgit.test/META-INF/MANIFEST.MF @@ -49,6 +49,7 @@ Import-Package: com.googlecode.javaewah;version="[1.1.6,2.0.0)", org.eclipse.jgit.junit.time;version="[5.6.0,5.7.0)", org.eclipse.jgit.lfs;version="[5.6.0,5.7.0)", org.eclipse.jgit.lib;version="[5.6.0,5.7.0)", + org.eclipse.jgit.lib.internal;version="[5.6.0,5.7.0)", org.eclipse.jgit.merge;version="[5.6.0,5.7.0)", org.eclipse.jgit.nls;version="[5.6.0,5.7.0)", org.eclipse.jgit.notes;version="[5.6.0,5.7.0)", |