Refactor commit signature parser (#30228)

To make it more flexible and support SSH signature.

The existing tests are not changed, there are also tests covering
`parseTagRef` which also calls `parsePayloadSignature` now. Add some new
tests to `Test_parseTagData`
This commit is contained in:
wxiaoguang
2024-04-02 04:23:17 +08:00
repo.diff.committed_by GitHub
repo.diff.parent ca297a90fb
repo.diff.commit 0db554fa63
repo.diff.stats_desc%!(EXTRA int=7, int=135, int=99)

repo.diff.view_file

@@ -99,7 +99,7 @@ readLoop:
}
}
commit.CommitMessage = messageSB.String()
commit.Signature = &CommitGPGSignature{
commit.Signature = &CommitSignature{
Signature: signatureSB.String(),
Payload: payloadSB.String(),
}