gitparameteroptions

package
v0.456.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitCommitOptions

type GitCommitOptions struct {
	// Message of the commit:
	Message string

	// Allow empty commit:
	AllowEmpty bool

	// Commit all changes, not only the added ones:
	CommitAllChanges bool
}

func NewGitCommitOptions

func NewGitCommitOptions() (g *GitCommitOptions)

func (*GitCommitOptions) GetAllowEmpty

func (g *GitCommitOptions) GetAllowEmpty() (allowEmpty bool)

func (*GitCommitOptions) GetCommitAllChanges

func (g *GitCommitOptions) GetCommitAllChanges() (commitAllChanges bool)

func (*GitCommitOptions) GetDeepCopy

func (g *GitCommitOptions) GetDeepCopy() (deepCopy *GitCommitOptions)

func (*GitCommitOptions) GetMessage

func (g *GitCommitOptions) GetMessage() (message string, err error)

func (*GitCommitOptions) MustGetMessage

func (g *GitCommitOptions) MustGetMessage() (message string)

func (*GitCommitOptions) MustSetMessage

func (g *GitCommitOptions) MustSetMessage(message string)

func (*GitCommitOptions) SetAllowEmpty

func (g *GitCommitOptions) SetAllowEmpty(allowEmpty bool)

func (*GitCommitOptions) SetCommitAllChanges

func (g *GitCommitOptions) SetCommitAllChanges(commitAllChanges bool)

func (*GitCommitOptions) SetMessage

func (g *GitCommitOptions) SetMessage(message string) (err error)

type GitConfigSetOptions

type GitConfigSetOptions struct {
	Name  string
	Email string
}

func NewGitConfigSetOptions

func NewGitConfigSetOptions() (g *GitConfigSetOptions)

func (*GitConfigSetOptions) GetEmail

func (g *GitConfigSetOptions) GetEmail() (email string, err error)

func (*GitConfigSetOptions) GetName

func (g *GitConfigSetOptions) GetName() (name string, err error)

func (*GitConfigSetOptions) IsEmailSet

func (g *GitConfigSetOptions) IsEmailSet() (isSet bool)

func (*GitConfigSetOptions) IsNameSet

func (g *GitConfigSetOptions) IsNameSet() (isSet bool)

func (*GitConfigSetOptions) MustGetEmail

func (g *GitConfigSetOptions) MustGetEmail() (email string)

func (*GitConfigSetOptions) MustGetName

func (g *GitConfigSetOptions) MustGetName() (name string)

func (*GitConfigSetOptions) MustSetEmail

func (g *GitConfigSetOptions) MustSetEmail(email string)

func (*GitConfigSetOptions) MustSetName

func (g *GitConfigSetOptions) MustSetName(name string)

func (*GitConfigSetOptions) SetEmail

func (g *GitConfigSetOptions) SetEmail(email string) (err error)

func (*GitConfigSetOptions) SetName

func (g *GitConfigSetOptions) SetName(name string) (err error)

type GitPullFromRemoteOptions added in v0.446.0

type GitPullFromRemoteOptions struct {
	RemoteName string
	BranchName string
}

func NewGitPullFromRemoteOptions added in v0.446.0

func NewGitPullFromRemoteOptions() (g *GitPullFromRemoteOptions)

func (*GitPullFromRemoteOptions) GetBranchName added in v0.446.0

func (o *GitPullFromRemoteOptions) GetBranchName() (branchName string, err error)

func (*GitPullFromRemoteOptions) GetRemoteName added in v0.446.0

func (o *GitPullFromRemoteOptions) GetRemoteName() (remoteName string, err error)

func (*GitPullFromRemoteOptions) SetBranchName added in v0.446.0

func (g *GitPullFromRemoteOptions) SetBranchName(branchName string) (err error)

func (*GitPullFromRemoteOptions) SetRemoteName added in v0.446.0

func (g *GitPullFromRemoteOptions) SetRemoteName(remoteName string) (err error)

type GitRemoteAddOptions

type GitRemoteAddOptions struct {
	RemoteName string
	RemoteUrl  string
}

func NewGitRemoteAddOptions

func NewGitRemoteAddOptions() (g *GitRemoteAddOptions)

func (*GitRemoteAddOptions) GetRemoteName

func (o *GitRemoteAddOptions) GetRemoteName() (remoteName string, err error)

func (*GitRemoteAddOptions) GetRemoteUrl

func (o *GitRemoteAddOptions) GetRemoteUrl() (remoteUrl string, err error)

func (*GitRemoteAddOptions) MustGetRemoteName

func (g *GitRemoteAddOptions) MustGetRemoteName() (remoteName string)

func (*GitRemoteAddOptions) MustGetRemoteUrl

func (g *GitRemoteAddOptions) MustGetRemoteUrl() (remoteUrl string)

func (*GitRemoteAddOptions) MustSetRemoteName

func (g *GitRemoteAddOptions) MustSetRemoteName(remoteName string)

func (*GitRemoteAddOptions) MustSetRemoteUrl

func (g *GitRemoteAddOptions) MustSetRemoteUrl(remoteUrl string)

func (*GitRemoteAddOptions) SetRemoteName

func (g *GitRemoteAddOptions) SetRemoteName(remoteName string) (err error)

func (*GitRemoteAddOptions) SetRemoteUrl

func (g *GitRemoteAddOptions) SetRemoteUrl(remoteUrl string) (err error)

type GitRepositoryCreateTagOptions

type GitRepositoryCreateTagOptions struct {
	// Commit hash to tag.
	// If not set the currently checked out commit is tagged (depends on the implementation if supported)
	CommitHash string

	// Name and comment/ message of the tag:
	TagName    string
	TagComment string

	PushTagsToAllRemotes bool
}

func NewGitRepositoryCreateTagOptions

func NewGitRepositoryCreateTagOptions() (g *GitRepositoryCreateTagOptions)

func (*GitRepositoryCreateTagOptions) GetCommitHash

func (g *GitRepositoryCreateTagOptions) GetCommitHash() (commitHash string, err error)

func (*GitRepositoryCreateTagOptions) GetDeepCopy

func (*GitRepositoryCreateTagOptions) GetPushTagsToAllRemotes

func (g *GitRepositoryCreateTagOptions) GetPushTagsToAllRemotes() (pushTagsToAllRemotes bool, err error)

func (*GitRepositoryCreateTagOptions) GetTagComment

func (g *GitRepositoryCreateTagOptions) GetTagComment() (tagComment string, err error)

func (*GitRepositoryCreateTagOptions) GetTagCommentOrDefaultIfUnset

func (g *GitRepositoryCreateTagOptions) GetTagCommentOrDefaultIfUnset() (tagComment string)

func (*GitRepositoryCreateTagOptions) GetTagName

func (g *GitRepositoryCreateTagOptions) GetTagName() (tagName string, err error)

func (*GitRepositoryCreateTagOptions) GetTagNameOrEmptyStringIfUnset

func (g *GitRepositoryCreateTagOptions) GetTagNameOrEmptyStringIfUnset() (tagName string)

func (*GitRepositoryCreateTagOptions) IsCommitHashSet

func (g *GitRepositoryCreateTagOptions) IsCommitHashSet() (isSet bool)

func (*GitRepositoryCreateTagOptions) IsTagCommentSet

func (g *GitRepositoryCreateTagOptions) IsTagCommentSet() (isSet bool)

func (*GitRepositoryCreateTagOptions) SetCommitHash

func (g *GitRepositoryCreateTagOptions) SetCommitHash(commitHash string) (err error)

func (*GitRepositoryCreateTagOptions) SetPushTagsToAllRemotes

func (g *GitRepositoryCreateTagOptions) SetPushTagsToAllRemotes(pushTagsToAllRemotes bool) (err error)

func (*GitRepositoryCreateTagOptions) SetTagComment

func (g *GitRepositoryCreateTagOptions) SetTagComment(tagComment string) (err error)

func (*GitRepositoryCreateTagOptions) SetTagName

func (g *GitRepositoryCreateTagOptions) SetTagName(tagName string) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL