Versions in this module Expand all Collapse all v0 v0.36.0 Oct 24, 2022 Changes in this version + var ErrNoGitRepository = errors.New("no git repository") + var ErrNoStagedFiles = errors.New("no staged files") + type Author struct + Email string + Name string + type Commit struct + Hash string + Message string + type CommitOptions struct + type GPGSigningInfo struct + KeyID string + KeyRingPath string + Passphrase string + type Git interface + Clone func(ctx context.Context, url, branch string, caBundle []byte) (bool, error) + Commit func(message Commit, options ...Option) (string, error) + Head func() (string, error) + Init func(url, branch string) (bool, error) + Path func() string + Push func(ctx context.Context, caBundle []byte) error + Status func() (bool, error) + Write func(path string, reader io.Reader) error + type GpgSigningOption struct + func (w GpgSigningOption) ApplyToCommit(in *CommitOptions) + type Option interface + ApplyToCommit func(*CommitOptions) + func WithGpgSigningOption(path, passphrase, keyID string) Option