]> source.dussan.org Git - jgit.git/commit
Enable GpgSigner to also sign tags 38/173438/3
authorThomas Wolf <thomas.wolf@paranor.ch>
Sat, 5 Dec 2020 20:55:29 +0000 (21:55 +0100)
committerThomas Wolf <thomas.wolf@paranor.ch>
Mon, 7 Dec 2020 08:04:33 +0000 (09:04 +0100)
commit5abd8a4feb5da689982c12b65faef34aabedeb26
tree23b10e3d9bb0e6a5d727232db974f44d0883800b
parent99d612db2bf8b09b800745da5bfdcc0e5c14c2f2
Enable GpgSigner to also sign tags

Factor out a common ObjectBuilder as super class of CommitBuilder
and TagBuilder, and make the GpgSigner work on ObjectBuilder.

In order not to break API, add the new method for signing an
ObjectBuilder in a new interface GpgObjectSigner.

The signature for a tag is just tacked onto the end of the tag
message. The message of a signed tag must end in LF.

Bug: 386908
Change-Id: I5e021e3c927f4051825cd7355b129113b949455e
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.gpg.bc/src/org/eclipse/jgit/gpg/bc/internal/BouncyCastleGpgSigner.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/CommitBuilderTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/TagBuilderTest.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/RevTagParseTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/CommitBuilder.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/GpgObjectSigner.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectBuilder.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/lib/TagBuilder.java
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevTag.java