mirror of
https://github.com/go-gitea/git.git
synced 2026-07-19 14:33:37 -04:00
[PR #36] [MERGED] Add GPG payload to commit information if present #45
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/go-gitea/git/pull/36
Author: @sapk
Created: 3/8/2017
Status: ✅ Merged
Merged: 3/13/2017
Merged by: @lunny
Base:
master← Head:add-gpg-signature📝 Commits (2)
1395a17Add GPG payload to commit information if present335d1beFix missing data in payload + leading space in Signature📊 Changes
2 files changed (+26 additions, -0 deletions)
View changed files
📝
commit.go(+20 -0)📝
repo_commit.go(+6 -0)📄 Description
based on : https://github.com/git/git/blob/3bc53220cb2dcf709f7a027a3f526befd021d858/commit.c#L1128
I have to do further testing to determine if the struct CommitGPGSignature could not be replace by a simple string representing directly CommitGPGSignature.Signature. Since payload can maybe re-created from the rest of data in Commit struct.
If we don't care about duplicate of data at this stage it will simplify treatment after since payload and signature (+ public key from keystore in gitea) is only needed to verify the signed commit. https://github.com/git/git/blob/2cc2e70264e0fcba04f9ef791d144bbc8b501206/gpg-interface.c#L204
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.