]> source.dussan.org Git - gitea.git/commit
Refactor commit signature parser (#30228)
authorwxiaoguang <wxiaoguang@gmail.com>
Mon, 1 Apr 2024 20:23:17 +0000 (04:23 +0800)
committerGitHub <noreply@github.com>
Mon, 1 Apr 2024 20:23:17 +0000 (20:23 +0000)
commit0db554fa634737af59613768b2e01bfe3e239e68
treeb1dbd6cfb4e06ddfd5d32fb4eea227908c26983f
parentca297a90fb1fec5b270fad1a3e575916510e7385
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`
modules/git/commit.go
modules/git/commit_convert_gogit.go
modules/git/commit_reader.go
modules/git/repo_tag.go
modules/git/repo_tag_test.go
modules/git/tag.go
modules/git/tag_test.go