Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveSignerFromGitConfig ¶ added in v0.3.0
func ResolveSignerFromGitConfig( gpgSign, signingFormat, signingKey, gpgKeyPath, gpgPassphrase, appName string, ) (globalEntities.CommitSigner, error)
ResolveSignerFromGitConfig determines if and how commits should be signed based on git configuration values. Returns nil if signing is not configured (gpgSign is not "true").
Parameters map to standard git config values:
- gpgSign: commit.gpgsign
- signingFormat: gpg.format ("ssh" for SSH signing, anything else for GPG)
- signingKey: user.signingkey (key ID for GPG, file path for SSH)
- gpgKeyPath: optional file path to exported GPG key (empty = auto-detect from keyring)
- gpgPassphrase: GPG key passphrase (empty = prompt interactively)
- appName: application name used for GPG key path generation (e.g., "autobump")
Types ¶
type GPGSigner ¶
type GPGSigner struct {
// contains filtered or unexported fields
}
GPGSigner signs commits using a GPG key.
func NewGPGSigner ¶
NewGPGSigner creates a new GPGSigner with the given GPG key entity.
type SSHSigner ¶
type SSHSigner struct {
// contains filtered or unexported fields
}
SSHSigner signs commits using an SSH key.
func NewSSHSigner ¶
NewSSHSigner creates a new SSHSigner with the given SSH key file path.
Click to show internal directories.
Click to hide internal directories.