Documentation ¶
Overview ¶
Package opcode defines the individual operations that the Git Town VM can execute. All opcodes implement the shared.Opcode interface.
Index ¶
- func Lookup(opcodeType string) shared.Opcode
- func Types() []shared.Opcode
- type AbortMerge
- type AbortRebase
- func (self *AbortRebase) CreateAbortProgram() []shared.Opcode
- func (self *AbortRebase) CreateAutomaticUndoError() error
- func (self *AbortRebase) CreateContinueProgram() []shared.Opcode
- func (self *AbortRebase) Run(args shared.RunArgs) error
- func (self *AbortRebase) ShouldAutomaticallyUndoOnError() bool
- type AddToPerennialBranches
- func (self *AddToPerennialBranches) CreateAbortProgram() []shared.Opcode
- func (self *AddToPerennialBranches) CreateAutomaticUndoError() error
- func (self *AddToPerennialBranches) CreateContinueProgram() []shared.Opcode
- func (self *AddToPerennialBranches) Run(args shared.RunArgs) error
- func (self *AddToPerennialBranches) ShouldAutomaticallyUndoOnError() bool
- type ChangeParent
- func (self *ChangeParent) CreateAbortProgram() []shared.Opcode
- func (self *ChangeParent) CreateAutomaticUndoError() error
- func (self *ChangeParent) CreateContinueProgram() []shared.Opcode
- func (self *ChangeParent) Run(args shared.RunArgs) error
- func (self *ChangeParent) ShouldAutomaticallyUndoOnError() bool
- type Checkout
- type CheckoutFirstExisting
- func (self *CheckoutFirstExisting) CreateAbortProgram() []shared.Opcode
- func (self *CheckoutFirstExisting) CreateAutomaticUndoError() error
- func (self *CheckoutFirstExisting) CreateContinueProgram() []shared.Opcode
- func (self *CheckoutFirstExisting) Run(args shared.RunArgs) error
- func (self *CheckoutFirstExisting) ShouldAutomaticallyUndoOnError() bool
- type CheckoutIfExists
- func (self *CheckoutIfExists) CreateAbortProgram() []shared.Opcode
- func (self *CheckoutIfExists) CreateAutomaticUndoError() error
- func (self *CheckoutIfExists) CreateContinueProgram() []shared.Opcode
- func (self *CheckoutIfExists) Run(args shared.RunArgs) error
- func (self *CheckoutIfExists) ShouldAutomaticallyUndoOnError() bool
- type CheckoutParent
- func (self *CheckoutParent) CreateAbortProgram() []shared.Opcode
- func (self *CheckoutParent) CreateAutomaticUndoError() error
- func (self *CheckoutParent) CreateContinueProgram() []shared.Opcode
- func (self *CheckoutParent) Run(args shared.RunArgs) error
- func (self *CheckoutParent) ShouldAutomaticallyUndoOnError() bool
- type CommitOpenChanges
- func (self *CommitOpenChanges) CreateAbortProgram() []shared.Opcode
- func (self *CommitOpenChanges) CreateAutomaticUndoError() error
- func (self *CommitOpenChanges) CreateContinueProgram() []shared.Opcode
- func (self *CommitOpenChanges) Run(args shared.RunArgs) error
- func (self *CommitOpenChanges) ShouldAutomaticallyUndoOnError() bool
- type CommitSquashedChanges
- func (self *CommitSquashedChanges) CreateAbortProgram() []shared.Opcode
- func (self *CommitSquashedChanges) CreateAutomaticUndoError() error
- func (self *CommitSquashedChanges) CreateContinueProgram() []shared.Opcode
- func (self *CommitSquashedChanges) Run(args shared.RunArgs) error
- func (self *CommitSquashedChanges) ShouldAutomaticallyUndoOnError() bool
- type ConnectorMergeProposal
- func (self *ConnectorMergeProposal) CreateAbortProgram() []shared.Opcode
- func (self *ConnectorMergeProposal) CreateAutomaticUndoError() error
- func (self *ConnectorMergeProposal) CreateContinueProgram() []shared.Opcode
- func (self *ConnectorMergeProposal) Run(args shared.RunArgs) error
- func (self *ConnectorMergeProposal) ShouldAutomaticallyUndoOnError() bool
- type ContinueMerge
- func (self *ContinueMerge) CreateAbortProgram() []shared.Opcode
- func (self *ContinueMerge) CreateAutomaticUndoError() error
- func (self *ContinueMerge) CreateContinueProgram() []shared.Opcode
- func (self *ContinueMerge) Run(args shared.RunArgs) error
- func (self *ContinueMerge) ShouldAutomaticallyUndoOnError() bool
- type ContinueRebase
- func (self *ContinueRebase) CreateAbortProgram() []shared.Opcode
- func (self *ContinueRebase) CreateAutomaticUndoError() error
- func (self *ContinueRebase) CreateContinueProgram() []shared.Opcode
- func (self *ContinueRebase) Run(args shared.RunArgs) error
- func (self *ContinueRebase) ShouldAutomaticallyUndoOnError() bool
- type CreateAndCheckoutBranchExistingParent
- func (self *CreateAndCheckoutBranchExistingParent) CreateAbortProgram() []shared.Opcode
- func (self *CreateAndCheckoutBranchExistingParent) CreateAutomaticUndoError() error
- func (self *CreateAndCheckoutBranchExistingParent) CreateContinueProgram() []shared.Opcode
- func (self *CreateAndCheckoutBranchExistingParent) Run(args shared.RunArgs) error
- func (self *CreateAndCheckoutBranchExistingParent) ShouldAutomaticallyUndoOnError() bool
- type CreateBranch
- func (self *CreateBranch) CreateAbortProgram() []shared.Opcode
- func (self *CreateBranch) CreateAutomaticUndoError() error
- func (self *CreateBranch) CreateContinueProgram() []shared.Opcode
- func (self *CreateBranch) Run(args shared.RunArgs) error
- func (self *CreateBranch) ShouldAutomaticallyUndoOnError() bool
- type CreateProposal
- func (self *CreateProposal) CreateAbortProgram() []shared.Opcode
- func (self *CreateProposal) CreateAutomaticUndoError() error
- func (self *CreateProposal) CreateContinueProgram() []shared.Opcode
- func (self *CreateProposal) Run(args shared.RunArgs) error
- func (self *CreateProposal) ShouldAutomaticallyUndoOnError() bool
- type CreateRemoteBranch
- func (self *CreateRemoteBranch) CreateAbortProgram() []shared.Opcode
- func (self *CreateRemoteBranch) CreateAutomaticUndoError() error
- func (self *CreateRemoteBranch) CreateContinueProgram() []shared.Opcode
- func (self *CreateRemoteBranch) Run(args shared.RunArgs) error
- func (self *CreateRemoteBranch) ShouldAutomaticallyUndoOnError() bool
- type CreateTrackingBranch
- func (self *CreateTrackingBranch) CreateAbortProgram() []shared.Opcode
- func (self *CreateTrackingBranch) CreateAutomaticUndoError() error
- func (self *CreateTrackingBranch) CreateContinueProgram() []shared.Opcode
- func (self *CreateTrackingBranch) Run(args shared.RunArgs) error
- func (self *CreateTrackingBranch) ShouldAutomaticallyUndoOnError() bool
- type DeleteBranchIfEmptyAtRuntime
- func (self *DeleteBranchIfEmptyAtRuntime) CreateAbortProgram() []shared.Opcode
- func (self *DeleteBranchIfEmptyAtRuntime) CreateAutomaticUndoError() error
- func (self *DeleteBranchIfEmptyAtRuntime) CreateContinueProgram() []shared.Opcode
- func (self *DeleteBranchIfEmptyAtRuntime) Run(args shared.RunArgs) error
- func (self *DeleteBranchIfEmptyAtRuntime) ShouldAutomaticallyUndoOnError() bool
- type DeleteLocalBranch
- func (self *DeleteLocalBranch) CreateAbortProgram() []shared.Opcode
- func (self *DeleteLocalBranch) CreateAutomaticUndoError() error
- func (self *DeleteLocalBranch) CreateContinueProgram() []shared.Opcode
- func (self *DeleteLocalBranch) Run(args shared.RunArgs) error
- func (self *DeleteLocalBranch) ShouldAutomaticallyUndoOnError() bool
- type DeleteParentBranch
- func (self *DeleteParentBranch) CreateAbortProgram() []shared.Opcode
- func (self *DeleteParentBranch) CreateAutomaticUndoError() error
- func (self *DeleteParentBranch) CreateContinueProgram() []shared.Opcode
- func (self *DeleteParentBranch) Run(args shared.RunArgs) error
- func (self *DeleteParentBranch) ShouldAutomaticallyUndoOnError() bool
- type DeleteTrackingBranch
- func (self *DeleteTrackingBranch) CreateAbortProgram() []shared.Opcode
- func (self *DeleteTrackingBranch) CreateAutomaticUndoError() error
- func (self *DeleteTrackingBranch) CreateContinueProgram() []shared.Opcode
- func (self *DeleteTrackingBranch) Run(args shared.RunArgs) error
- func (self *DeleteTrackingBranch) ShouldAutomaticallyUndoOnError() bool
- type DiscardOpenChanges
- func (self *DiscardOpenChanges) CreateAbortProgram() []shared.Opcode
- func (self *DiscardOpenChanges) CreateAutomaticUndoError() error
- func (self *DiscardOpenChanges) CreateContinueProgram() []shared.Opcode
- func (self *DiscardOpenChanges) Run(args shared.RunArgs) error
- func (self *DiscardOpenChanges) ShouldAutomaticallyUndoOnError() bool
- type EndOfBranchProgram
- func (self *EndOfBranchProgram) CreateAbortProgram() []shared.Opcode
- func (self *EndOfBranchProgram) CreateAutomaticUndoError() error
- func (self *EndOfBranchProgram) CreateContinueProgram() []shared.Opcode
- func (self *EndOfBranchProgram) Run(_ shared.RunArgs) error
- func (self *EndOfBranchProgram) ShouldAutomaticallyUndoOnError() bool
- type EnsureHasShippableChanges
- func (self *EnsureHasShippableChanges) CreateAbortProgram() []shared.Opcode
- func (self *EnsureHasShippableChanges) CreateAutomaticUndoError() error
- func (self *EnsureHasShippableChanges) CreateContinueProgram() []shared.Opcode
- func (self *EnsureHasShippableChanges) Run(args shared.RunArgs) error
- func (self *EnsureHasShippableChanges) ShouldAutomaticallyUndoOnError() bool
- type FetchUpstream
- func (self *FetchUpstream) CreateAbortProgram() []shared.Opcode
- func (self *FetchUpstream) CreateAutomaticUndoError() error
- func (self *FetchUpstream) CreateContinueProgram() []shared.Opcode
- func (self *FetchUpstream) Run(args shared.RunArgs) error
- func (self *FetchUpstream) ShouldAutomaticallyUndoOnError() bool
- type ForcePushCurrentBranch
- func (self *ForcePushCurrentBranch) CreateAbortProgram() []shared.Opcode
- func (self *ForcePushCurrentBranch) CreateAutomaticUndoError() error
- func (self *ForcePushCurrentBranch) CreateContinueProgram() []shared.Opcode
- func (self *ForcePushCurrentBranch) Run(args shared.RunArgs) error
- func (self *ForcePushCurrentBranch) ShouldAutomaticallyUndoOnError() bool
- type Merge
- type MergeParent
- func (self *MergeParent) CreateAbortProgram() []shared.Opcode
- func (self *MergeParent) CreateAutomaticUndoError() error
- func (self *MergeParent) CreateContinueProgram() []shared.Opcode
- func (self *MergeParent) Run(args shared.RunArgs) error
- func (self *MergeParent) ShouldAutomaticallyUndoOnError() bool
- type PreserveCheckoutHistory
- func (self *PreserveCheckoutHistory) CreateAbortProgram() []shared.Opcode
- func (self *PreserveCheckoutHistory) CreateAutomaticUndoError() error
- func (self *PreserveCheckoutHistory) CreateContinueProgram() []shared.Opcode
- func (self *PreserveCheckoutHistory) Run(args shared.RunArgs) error
- func (self *PreserveCheckoutHistory) ShouldAutomaticallyUndoOnError() bool
- type PullCurrentBranch
- func (self *PullCurrentBranch) CreateAbortProgram() []shared.Opcode
- func (self *PullCurrentBranch) CreateAutomaticUndoError() error
- func (self *PullCurrentBranch) CreateContinueProgram() []shared.Opcode
- func (self *PullCurrentBranch) Run(args shared.RunArgs) error
- func (self *PullCurrentBranch) ShouldAutomaticallyUndoOnError() bool
- type PushCurrentBranch
- func (self *PushCurrentBranch) CreateAbortProgram() []shared.Opcode
- func (self *PushCurrentBranch) CreateAutomaticUndoError() error
- func (self *PushCurrentBranch) CreateContinueProgram() []shared.Opcode
- func (self *PushCurrentBranch) Run(args shared.RunArgs) error
- func (self *PushCurrentBranch) ShouldAutomaticallyUndoOnError() bool
- type PushTags
- type QueueMessage
- func (self *QueueMessage) CreateAbortProgram() []shared.Opcode
- func (self *QueueMessage) CreateAutomaticUndoError() error
- func (self *QueueMessage) CreateContinueProgram() []shared.Opcode
- func (self *QueueMessage) Run(args shared.RunArgs) error
- func (self *QueueMessage) ShouldAutomaticallyUndoOnError() bool
- type RebaseBranch
- func (self *RebaseBranch) CreateAbortProgram() []shared.Opcode
- func (self *RebaseBranch) CreateAutomaticUndoError() error
- func (self *RebaseBranch) CreateContinueProgram() []shared.Opcode
- func (self *RebaseBranch) Run(args shared.RunArgs) error
- func (self *RebaseBranch) ShouldAutomaticallyUndoOnError() bool
- type RebaseFeatureTrackingBranch
- func (self *RebaseFeatureTrackingBranch) CreateAbortProgram() []shared.Opcode
- func (self *RebaseFeatureTrackingBranch) CreateAutomaticUndoError() error
- func (self *RebaseFeatureTrackingBranch) CreateContinueProgram() []shared.Opcode
- func (self *RebaseFeatureTrackingBranch) Run(args shared.RunArgs) error
- func (self *RebaseFeatureTrackingBranch) ShouldAutomaticallyUndoOnError() bool
- type RebaseParent
- func (self *RebaseParent) CreateAbortProgram() []shared.Opcode
- func (self *RebaseParent) CreateAutomaticUndoError() error
- func (self *RebaseParent) CreateContinueProgram() []shared.Opcode
- func (self *RebaseParent) Run(args shared.RunArgs) error
- func (self *RebaseParent) ShouldAutomaticallyUndoOnError() bool
- type RemoveBranchFromLineage
- func (self *RemoveBranchFromLineage) CreateAbortProgram() []shared.Opcode
- func (self *RemoveBranchFromLineage) CreateAutomaticUndoError() error
- func (self *RemoveBranchFromLineage) CreateContinueProgram() []shared.Opcode
- func (self *RemoveBranchFromLineage) Run(args shared.RunArgs) error
- func (self *RemoveBranchFromLineage) ShouldAutomaticallyUndoOnError() bool
- type RemoveFromObservedBranches
- func (self *RemoveFromObservedBranches) CreateAbortProgram() []shared.Opcode
- func (self *RemoveFromObservedBranches) CreateAutomaticUndoError() error
- func (self *RemoveFromObservedBranches) CreateContinueProgram() []shared.Opcode
- func (self *RemoveFromObservedBranches) Run(args shared.RunArgs) error
- func (self *RemoveFromObservedBranches) ShouldAutomaticallyUndoOnError() bool
- type RemoveFromPerennialBranches
- func (self *RemoveFromPerennialBranches) CreateAbortProgram() []shared.Opcode
- func (self *RemoveFromPerennialBranches) CreateAutomaticUndoError() error
- func (self *RemoveFromPerennialBranches) CreateContinueProgram() []shared.Opcode
- func (self *RemoveFromPerennialBranches) Run(args shared.RunArgs) error
- func (self *RemoveFromPerennialBranches) ShouldAutomaticallyUndoOnError() bool
- type RemoveGlobalConfig
- func (self *RemoveGlobalConfig) CreateAbortProgram() []shared.Opcode
- func (self *RemoveGlobalConfig) CreateAutomaticUndoError() error
- func (self *RemoveGlobalConfig) CreateContinueProgram() []shared.Opcode
- func (self *RemoveGlobalConfig) Run(args shared.RunArgs) error
- func (self *RemoveGlobalConfig) ShouldAutomaticallyUndoOnError() bool
- type RemoveLocalConfig
- func (self *RemoveLocalConfig) CreateAbortProgram() []shared.Opcode
- func (self *RemoveLocalConfig) CreateAutomaticUndoError() error
- func (self *RemoveLocalConfig) CreateContinueProgram() []shared.Opcode
- func (self *RemoveLocalConfig) Run(args shared.RunArgs) error
- func (self *RemoveLocalConfig) ShouldAutomaticallyUndoOnError() bool
- type ResetCommitsInCurrentBranch
- func (self *ResetCommitsInCurrentBranch) CreateAbortProgram() []shared.Opcode
- func (self *ResetCommitsInCurrentBranch) CreateAutomaticUndoError() error
- func (self *ResetCommitsInCurrentBranch) CreateContinueProgram() []shared.Opcode
- func (self *ResetCommitsInCurrentBranch) Run(args shared.RunArgs) error
- func (self *ResetCommitsInCurrentBranch) ShouldAutomaticallyUndoOnError() bool
- type ResetCurrentBranchToSHA
- func (self *ResetCurrentBranchToSHA) CreateAbortProgram() []shared.Opcode
- func (self *ResetCurrentBranchToSHA) CreateAutomaticUndoError() error
- func (self *ResetCurrentBranchToSHA) CreateContinueProgram() []shared.Opcode
- func (self *ResetCurrentBranchToSHA) Run(args shared.RunArgs) error
- func (self *ResetCurrentBranchToSHA) ShouldAutomaticallyUndoOnError() bool
- type ResetRemoteBranchToSHA
- func (self *ResetRemoteBranchToSHA) CreateAbortProgram() []shared.Opcode
- func (self *ResetRemoteBranchToSHA) CreateAutomaticUndoError() error
- func (self *ResetRemoteBranchToSHA) CreateContinueProgram() []shared.Opcode
- func (self *ResetRemoteBranchToSHA) Run(args shared.RunArgs) error
- func (self *ResetRemoteBranchToSHA) ShouldAutomaticallyUndoOnError() bool
- type RestoreOpenChanges
- func (self *RestoreOpenChanges) CreateAbortProgram() []shared.Opcode
- func (self *RestoreOpenChanges) CreateAutomaticUndoError() error
- func (self *RestoreOpenChanges) CreateContinueProgram() []shared.Opcode
- func (self *RestoreOpenChanges) Run(args shared.RunArgs) error
- func (self *RestoreOpenChanges) ShouldAutomaticallyUndoOnError() bool
- type RevertCommit
- func (self *RevertCommit) CreateAbortProgram() []shared.Opcode
- func (self *RevertCommit) CreateAutomaticUndoError() error
- func (self *RevertCommit) CreateContinueProgram() []shared.Opcode
- func (self *RevertCommit) Run(args shared.RunArgs) error
- func (self *RevertCommit) ShouldAutomaticallyUndoOnError() bool
- type SetExistingParent
- func (self *SetExistingParent) CreateAbortProgram() []shared.Opcode
- func (self *SetExistingParent) CreateAutomaticUndoError() error
- func (self *SetExistingParent) CreateContinueProgram() []shared.Opcode
- func (self *SetExistingParent) Run(args shared.RunArgs) error
- func (self *SetExistingParent) ShouldAutomaticallyUndoOnError() bool
- type SetGlobalConfig
- func (self *SetGlobalConfig) CreateAbortProgram() []shared.Opcode
- func (self *SetGlobalConfig) CreateAutomaticUndoError() error
- func (self *SetGlobalConfig) CreateContinueProgram() []shared.Opcode
- func (self *SetGlobalConfig) Run(args shared.RunArgs) error
- func (self *SetGlobalConfig) ShouldAutomaticallyUndoOnError() bool
- type SetLocalConfig
- func (self *SetLocalConfig) CreateAbortProgram() []shared.Opcode
- func (self *SetLocalConfig) CreateAutomaticUndoError() error
- func (self *SetLocalConfig) CreateContinueProgram() []shared.Opcode
- func (self *SetLocalConfig) Run(args shared.RunArgs) error
- func (self *SetLocalConfig) ShouldAutomaticallyUndoOnError() bool
- type SetParent
- type SetParentIfBranchExists
- func (self *SetParentIfBranchExists) CreateAbortProgram() []shared.Opcode
- func (self *SetParentIfBranchExists) CreateAutomaticUndoError() error
- func (self *SetParentIfBranchExists) CreateContinueProgram() []shared.Opcode
- func (self *SetParentIfBranchExists) Run(args shared.RunArgs) error
- func (self *SetParentIfBranchExists) ShouldAutomaticallyUndoOnError() bool
- type SkipCurrentBranch
- func (self *SkipCurrentBranch) CreateAbortProgram() []shared.Opcode
- func (self *SkipCurrentBranch) CreateAutomaticUndoError() error
- func (self *SkipCurrentBranch) CreateContinueProgram() []shared.Opcode
- func (self *SkipCurrentBranch) Run(_ shared.RunArgs) error
- func (self *SkipCurrentBranch) ShouldAutomaticallyUndoOnError() bool
- type SquashMerge
- func (self *SquashMerge) CreateAbortProgram() []shared.Opcode
- func (self *SquashMerge) CreateAutomaticUndoError() error
- func (self *SquashMerge) CreateContinueProgram() []shared.Opcode
- func (self *SquashMerge) Run(args shared.RunArgs) error
- func (self *SquashMerge) ShouldAutomaticallyUndoOnError() bool
- type StashOpenChanges
- func (self *StashOpenChanges) CreateAbortProgram() []shared.Opcode
- func (self *StashOpenChanges) CreateAutomaticUndoError() error
- func (self *StashOpenChanges) CreateContinueProgram() []shared.Opcode
- func (self *StashOpenChanges) Run(args shared.RunArgs) error
- func (self *StashOpenChanges) ShouldAutomaticallyUndoOnError() bool
- type UndoLastCommit
- func (self *UndoLastCommit) CreateAbortProgram() []shared.Opcode
- func (self *UndoLastCommit) CreateAutomaticUndoError() error
- func (self *UndoLastCommit) CreateContinueProgram() []shared.Opcode
- func (self *UndoLastCommit) Run(args shared.RunArgs) error
- func (self *UndoLastCommit) ShouldAutomaticallyUndoOnError() bool
- type UpdateInitialBranchLocalSHA
- func (self *UpdateInitialBranchLocalSHA) CreateAbortProgram() []shared.Opcode
- func (self *UpdateInitialBranchLocalSHA) CreateAutomaticUndoError() error
- func (self *UpdateInitialBranchLocalSHA) CreateContinueProgram() []shared.Opcode
- func (self *UpdateInitialBranchLocalSHA) Run(args shared.RunArgs) error
- func (self *UpdateInitialBranchLocalSHA) ShouldAutomaticallyUndoOnError() bool
- type UpdateProposalTarget
- func (self *UpdateProposalTarget) CreateAbortProgram() []shared.Opcode
- func (self *UpdateProposalTarget) CreateAutomaticUndoError() error
- func (self *UpdateProposalTarget) CreateContinueProgram() []shared.Opcode
- func (self *UpdateProposalTarget) Run(args shared.RunArgs) error
- func (self *UpdateProposalTarget) ShouldAutomaticallyUndoOnError() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AbortMerge ¶
type AbortMerge struct {
// contains filtered or unexported fields
}
AbortMerge aborts the current merge conflict.
func (*AbortMerge) CreateAbortProgram ¶
func (*AbortMerge) CreateAutomaticUndoError ¶
func (self *AbortMerge) CreateAutomaticUndoError() error
func (*AbortMerge) CreateContinueProgram ¶
func (*AbortMerge) ShouldAutomaticallyUndoOnError ¶
func (self *AbortMerge) ShouldAutomaticallyUndoOnError() bool
type AbortRebase ¶
type AbortRebase struct {
// contains filtered or unexported fields
}
AbortRebase represents aborting on ongoing merge conflict. This opcode is used in the abort scripts for Git Town commands.
func (*AbortRebase) CreateAbortProgram ¶
func (*AbortRebase) CreateAutomaticUndoError ¶
func (self *AbortRebase) CreateAutomaticUndoError() error
func (*AbortRebase) CreateContinueProgram ¶
func (*AbortRebase) ShouldAutomaticallyUndoOnError ¶
func (self *AbortRebase) ShouldAutomaticallyUndoOnError() bool
type AddToPerennialBranches ¶
type AddToPerennialBranches struct { Branch gitdomain.LocalBranchName // contains filtered or unexported fields }
AddToPerennialBranches adds the branch with the given name as a perennial branch.
func (*AddToPerennialBranches) CreateAbortProgram ¶
func (*AddToPerennialBranches) CreateAutomaticUndoError ¶
func (self *AddToPerennialBranches) CreateAutomaticUndoError() error
func (*AddToPerennialBranches) CreateContinueProgram ¶
func (*AddToPerennialBranches) Run ¶
func (self *AddToPerennialBranches) Run(args shared.RunArgs) error
func (*AddToPerennialBranches) ShouldAutomaticallyUndoOnError ¶
func (self *AddToPerennialBranches) ShouldAutomaticallyUndoOnError() bool
type ChangeParent ¶
type ChangeParent struct { Branch gitdomain.LocalBranchName Parent gitdomain.LocalBranchName // contains filtered or unexported fields }
ChangeParent changes the parent of the given branch to the given parent. Use SetParent to set the parent if no parent existed before.
func (*ChangeParent) CreateAbortProgram ¶
func (*ChangeParent) CreateAutomaticUndoError ¶
func (self *ChangeParent) CreateAutomaticUndoError() error
func (*ChangeParent) CreateContinueProgram ¶
func (*ChangeParent) ShouldAutomaticallyUndoOnError ¶
func (self *ChangeParent) ShouldAutomaticallyUndoOnError() bool
type Checkout ¶
type Checkout struct { Branch gitdomain.LocalBranchName // contains filtered or unexported fields }
Checkout checks out a new branch.
func (*Checkout) CreateAbortProgram ¶
func (*Checkout) CreateAutomaticUndoError ¶
func (self *Checkout) CreateAutomaticUndoError() error
func (*Checkout) CreateContinueProgram ¶
func (*Checkout) ShouldAutomaticallyUndoOnError ¶
func (self *Checkout) ShouldAutomaticallyUndoOnError() bool
type CheckoutFirstExisting ¶ added in v14.1.0
type CheckoutFirstExisting struct { Branches gitdomain.LocalBranchNames MainBranch gitdomain.LocalBranchName // contains filtered or unexported fields }
CheckoutIfExists does the same as Checkout but only if that branch actually exists.
func (*CheckoutFirstExisting) CreateAbortProgram ¶ added in v14.1.0
func (*CheckoutFirstExisting) CreateAutomaticUndoError ¶ added in v14.1.0
func (self *CheckoutFirstExisting) CreateAutomaticUndoError() error
func (*CheckoutFirstExisting) CreateContinueProgram ¶ added in v14.1.0
func (*CheckoutFirstExisting) Run ¶ added in v14.1.0
func (self *CheckoutFirstExisting) Run(args shared.RunArgs) error
func (*CheckoutFirstExisting) ShouldAutomaticallyUndoOnError ¶ added in v14.1.0
func (self *CheckoutFirstExisting) ShouldAutomaticallyUndoOnError() bool
type CheckoutIfExists ¶
type CheckoutIfExists struct { Branch gitdomain.LocalBranchName // contains filtered or unexported fields }
CheckoutIfExists does the same as Checkout but only if that branch actually exists.
func (*CheckoutIfExists) CreateAbortProgram ¶
func (*CheckoutIfExists) CreateAutomaticUndoError ¶
func (self *CheckoutIfExists) CreateAutomaticUndoError() error
func (*CheckoutIfExists) CreateContinueProgram ¶
func (*CheckoutIfExists) ShouldAutomaticallyUndoOnError ¶
func (self *CheckoutIfExists) ShouldAutomaticallyUndoOnError() bool
type CheckoutParent ¶
type CheckoutParent struct { CurrentBranch gitdomain.LocalBranchName // contains filtered or unexported fields }
CheckoutParent checks out the parent branch of the current branch.
func (*CheckoutParent) CreateAbortProgram ¶
func (*CheckoutParent) CreateAutomaticUndoError ¶
func (self *CheckoutParent) CreateAutomaticUndoError() error
func (*CheckoutParent) CreateContinueProgram ¶
func (*CheckoutParent) ShouldAutomaticallyUndoOnError ¶
func (self *CheckoutParent) ShouldAutomaticallyUndoOnError() bool
type CommitOpenChanges ¶
type CommitOpenChanges struct {
// contains filtered or unexported fields
}
CommitOpenChanges commits all open changes as a new commit. It does not ask the user for a commit message, but chooses one automatically.
func (*CommitOpenChanges) CreateAbortProgram ¶
func (*CommitOpenChanges) CreateAutomaticUndoError ¶
func (self *CommitOpenChanges) CreateAutomaticUndoError() error
func (*CommitOpenChanges) CreateContinueProgram ¶
func (self *CommitOpenChanges) CreateContinueProgram() []shared.Opcode
func (*CommitOpenChanges) ShouldAutomaticallyUndoOnError ¶
func (self *CommitOpenChanges) ShouldAutomaticallyUndoOnError() bool
type CommitSquashedChanges ¶
type CommitSquashedChanges struct { Message gitdomain.CommitMessage // contains filtered or unexported fields }
CommitOpenChanges commits all open changes as a new commit.
func (*CommitSquashedChanges) CreateAbortProgram ¶
func (*CommitSquashedChanges) CreateAutomaticUndoError ¶
func (self *CommitSquashedChanges) CreateAutomaticUndoError() error
func (*CommitSquashedChanges) CreateContinueProgram ¶
func (*CommitSquashedChanges) Run ¶
func (self *CommitSquashedChanges) Run(args shared.RunArgs) error
func (*CommitSquashedChanges) ShouldAutomaticallyUndoOnError ¶
func (self *CommitSquashedChanges) ShouldAutomaticallyUndoOnError() bool
type ConnectorMergeProposal ¶
type ConnectorMergeProposal struct { Branch gitdomain.LocalBranchName CommitMessage gitdomain.CommitMessage ProposalMessage string ProposalNumber int // contains filtered or unexported fields }
ConnectorMergeProposal squash merges the branch with the given name into the current branch.
func (*ConnectorMergeProposal) CreateAbortProgram ¶
func (self *ConnectorMergeProposal) CreateAbortProgram() []shared.Opcode
func (*ConnectorMergeProposal) CreateAutomaticUndoError ¶
func (self *ConnectorMergeProposal) CreateAutomaticUndoError() error
func (*ConnectorMergeProposal) CreateContinueProgram ¶
func (self *ConnectorMergeProposal) CreateContinueProgram() []shared.Opcode
func (*ConnectorMergeProposal) Run ¶
func (self *ConnectorMergeProposal) Run(args shared.RunArgs) error
func (*ConnectorMergeProposal) ShouldAutomaticallyUndoOnError ¶
func (self *ConnectorMergeProposal) ShouldAutomaticallyUndoOnError() bool
ShouldAutomaticallyUndoOnError returns whether this opcode should cause the command to automatically undo if it errors.
type ContinueMerge ¶
type ContinueMerge struct {
// contains filtered or unexported fields
}
ContinueMerge finishes an ongoing merge conflict assuming all conflicts have been resolved by the user.
func (*ContinueMerge) CreateAbortProgram ¶
func (*ContinueMerge) CreateAutomaticUndoError ¶
func (self *ContinueMerge) CreateAutomaticUndoError() error
func (*ContinueMerge) CreateContinueProgram ¶
func (self *ContinueMerge) CreateContinueProgram() []shared.Opcode
func (*ContinueMerge) ShouldAutomaticallyUndoOnError ¶
func (self *ContinueMerge) ShouldAutomaticallyUndoOnError() bool
type ContinueRebase ¶
type ContinueRebase struct {
// contains filtered or unexported fields
}
ContinueRebase finishes an ongoing rebase operation assuming all conflicts have been resolved by the user.
func (*ContinueRebase) CreateAbortProgram ¶
func (self *ContinueRebase) CreateAbortProgram() []shared.Opcode
func (*ContinueRebase) CreateAutomaticUndoError ¶
func (self *ContinueRebase) CreateAutomaticUndoError() error
func (*ContinueRebase) CreateContinueProgram ¶
func (self *ContinueRebase) CreateContinueProgram() []shared.Opcode
func (*ContinueRebase) ShouldAutomaticallyUndoOnError ¶
func (self *ContinueRebase) ShouldAutomaticallyUndoOnError() bool
type CreateAndCheckoutBranchExistingParent ¶
type CreateAndCheckoutBranchExistingParent struct { Ancestors gitdomain.LocalBranchNames // list of ancestors - uses the first existing ancestor in this list Branch gitdomain.LocalBranchName // contains filtered or unexported fields }
CreateAndCheckoutBranchExistingParent creates a new branch with the first existing entry from the given ancestor list as its parent.
func (*CreateAndCheckoutBranchExistingParent) CreateAbortProgram ¶
func (*CreateAndCheckoutBranchExistingParent) CreateAutomaticUndoError ¶
func (self *CreateAndCheckoutBranchExistingParent) CreateAutomaticUndoError() error
func (*CreateAndCheckoutBranchExistingParent) CreateContinueProgram ¶
func (self *CreateAndCheckoutBranchExistingParent) CreateContinueProgram() []shared.Opcode
func (*CreateAndCheckoutBranchExistingParent) Run ¶
func (self *CreateAndCheckoutBranchExistingParent) Run(args shared.RunArgs) error
func (*CreateAndCheckoutBranchExistingParent) ShouldAutomaticallyUndoOnError ¶
func (self *CreateAndCheckoutBranchExistingParent) ShouldAutomaticallyUndoOnError() bool
type CreateBranch ¶
type CreateBranch struct { Branch gitdomain.LocalBranchName StartingPoint gitdomain.Location // contains filtered or unexported fields }
CreateBranch creates a new branch but leaves the current branch unchanged.
func (*CreateBranch) CreateAbortProgram ¶
func (*CreateBranch) CreateAutomaticUndoError ¶
func (self *CreateBranch) CreateAutomaticUndoError() error
func (*CreateBranch) CreateContinueProgram ¶
func (*CreateBranch) ShouldAutomaticallyUndoOnError ¶
func (self *CreateBranch) ShouldAutomaticallyUndoOnError() bool
type CreateProposal ¶
type CreateProposal struct { Branch gitdomain.LocalBranchName // contains filtered or unexported fields }
CreateProposal creates a new proposal for the current branch.
func (*CreateProposal) CreateAbortProgram ¶
func (*CreateProposal) CreateAutomaticUndoError ¶
func (self *CreateProposal) CreateAutomaticUndoError() error
func (*CreateProposal) CreateContinueProgram ¶
func (self *CreateProposal) CreateContinueProgram() []shared.Opcode
func (*CreateProposal) ShouldAutomaticallyUndoOnError ¶
func (self *CreateProposal) ShouldAutomaticallyUndoOnError() bool
type CreateRemoteBranch ¶
type CreateRemoteBranch struct { Branch gitdomain.LocalBranchName SHA gitdomain.SHA // contains filtered or unexported fields }
CreateRemoteBranch pushes the given local branch up to origin.
func (*CreateRemoteBranch) CreateAbortProgram ¶
func (*CreateRemoteBranch) CreateAutomaticUndoError ¶
func (self *CreateRemoteBranch) CreateAutomaticUndoError() error
func (*CreateRemoteBranch) CreateContinueProgram ¶
func (*CreateRemoteBranch) ShouldAutomaticallyUndoOnError ¶
func (self *CreateRemoteBranch) ShouldAutomaticallyUndoOnError() bool
type CreateTrackingBranch ¶
type CreateTrackingBranch struct { Branch gitdomain.LocalBranchName // contains filtered or unexported fields }
CreateTrackingBranch pushes the given local branch up to origin and marks it as tracking the current branch.
func (*CreateTrackingBranch) CreateAbortProgram ¶
func (*CreateTrackingBranch) CreateAutomaticUndoError ¶
func (self *CreateTrackingBranch) CreateAutomaticUndoError() error
func (*CreateTrackingBranch) CreateContinueProgram ¶
func (self *CreateTrackingBranch) CreateContinueProgram() []shared.Opcode
func (*CreateTrackingBranch) ShouldAutomaticallyUndoOnError ¶
func (self *CreateTrackingBranch) ShouldAutomaticallyUndoOnError() bool
type DeleteBranchIfEmptyAtRuntime ¶
type DeleteBranchIfEmptyAtRuntime struct { Branch gitdomain.LocalBranchName // contains filtered or unexported fields }
DeleteBranchIfEmptyAtRuntime allows running different opcodes based on a condition evaluated at runtime.
func (*DeleteBranchIfEmptyAtRuntime) CreateAbortProgram ¶
func (*DeleteBranchIfEmptyAtRuntime) CreateAutomaticUndoError ¶
func (self *DeleteBranchIfEmptyAtRuntime) CreateAutomaticUndoError() error
func (*DeleteBranchIfEmptyAtRuntime) CreateContinueProgram ¶
func (*DeleteBranchIfEmptyAtRuntime) Run ¶
func (self *DeleteBranchIfEmptyAtRuntime) Run(args shared.RunArgs) error
func (*DeleteBranchIfEmptyAtRuntime) ShouldAutomaticallyUndoOnError ¶
func (self *DeleteBranchIfEmptyAtRuntime) ShouldAutomaticallyUndoOnError() bool
type DeleteLocalBranch ¶
type DeleteLocalBranch struct { Branch gitdomain.LocalBranchName // contains filtered or unexported fields }
DeleteLocalBranch deletes the branch with the given name.
func (*DeleteLocalBranch) CreateAbortProgram ¶
func (*DeleteLocalBranch) CreateAutomaticUndoError ¶
func (self *DeleteLocalBranch) CreateAutomaticUndoError() error
func (*DeleteLocalBranch) CreateContinueProgram ¶
func (*DeleteLocalBranch) ShouldAutomaticallyUndoOnError ¶
func (self *DeleteLocalBranch) ShouldAutomaticallyUndoOnError() bool
type DeleteParentBranch ¶
type DeleteParentBranch struct { Branch gitdomain.LocalBranchName // contains filtered or unexported fields }
DeleteParentBranch removes the parent branch entry in the Git Town configuration.
func (*DeleteParentBranch) CreateAbortProgram ¶
func (*DeleteParentBranch) CreateAutomaticUndoError ¶
func (self *DeleteParentBranch) CreateAutomaticUndoError() error
func (*DeleteParentBranch) CreateContinueProgram ¶
func (*DeleteParentBranch) ShouldAutomaticallyUndoOnError ¶
func (self *DeleteParentBranch) ShouldAutomaticallyUndoOnError() bool
type DeleteTrackingBranch ¶
type DeleteTrackingBranch struct { Branch gitdomain.RemoteBranchName // contains filtered or unexported fields }
DeleteTrackingBranch deletes the tracking branch of the given local branch.
func (*DeleteTrackingBranch) CreateAbortProgram ¶
func (*DeleteTrackingBranch) CreateAutomaticUndoError ¶
func (self *DeleteTrackingBranch) CreateAutomaticUndoError() error
func (*DeleteTrackingBranch) CreateContinueProgram ¶
func (*DeleteTrackingBranch) ShouldAutomaticallyUndoOnError ¶
func (self *DeleteTrackingBranch) ShouldAutomaticallyUndoOnError() bool
type DiscardOpenChanges ¶
type DiscardOpenChanges struct {
// contains filtered or unexported fields
}
DiscardOpenChanges resets the branch to the last commit, discarding uncommitted changes.
func (*DiscardOpenChanges) CreateAbortProgram ¶
func (*DiscardOpenChanges) CreateAutomaticUndoError ¶
func (self *DiscardOpenChanges) CreateAutomaticUndoError() error
func (*DiscardOpenChanges) CreateContinueProgram ¶
func (*DiscardOpenChanges) ShouldAutomaticallyUndoOnError ¶
func (self *DiscardOpenChanges) ShouldAutomaticallyUndoOnError() bool
type EndOfBranchProgram ¶
type EndOfBranchProgram struct {
// contains filtered or unexported fields
}
EndOfBranchProgram marks the end of the program to sync a branch. All opcodes after this opcode are not for syncing this branch. They might sync another branch, or do something else.
func (*EndOfBranchProgram) CreateAbortProgram ¶
func (*EndOfBranchProgram) CreateAutomaticUndoError ¶
func (self *EndOfBranchProgram) CreateAutomaticUndoError() error
func (*EndOfBranchProgram) CreateContinueProgram ¶
func (*EndOfBranchProgram) ShouldAutomaticallyUndoOnError ¶
func (self *EndOfBranchProgram) ShouldAutomaticallyUndoOnError() bool
type EnsureHasShippableChanges ¶
type EnsureHasShippableChanges struct { Branch gitdomain.LocalBranchName Parent gitdomain.LocalBranchName // contains filtered or unexported fields }
EnsureHasShippableChanges asserts that the branch has unique changes not on the main branch.
func (*EnsureHasShippableChanges) CreateAbortProgram ¶
func (*EnsureHasShippableChanges) CreateAutomaticUndoError ¶
func (self *EnsureHasShippableChanges) CreateAutomaticUndoError() error
func (*EnsureHasShippableChanges) CreateContinueProgram ¶
func (*EnsureHasShippableChanges) Run ¶
func (self *EnsureHasShippableChanges) Run(args shared.RunArgs) error
func (*EnsureHasShippableChanges) ShouldAutomaticallyUndoOnError ¶
func (self *EnsureHasShippableChanges) ShouldAutomaticallyUndoOnError() bool
type FetchUpstream ¶
type FetchUpstream struct { Branch gitdomain.LocalBranchName // contains filtered or unexported fields }
FetchUpstream brings the Git history of the local repository up to speed with activities that happened in the upstream remote.
func (*FetchUpstream) CreateAbortProgram ¶
func (*FetchUpstream) CreateAutomaticUndoError ¶
func (self *FetchUpstream) CreateAutomaticUndoError() error
func (*FetchUpstream) CreateContinueProgram ¶
func (*FetchUpstream) ShouldAutomaticallyUndoOnError ¶
func (self *FetchUpstream) ShouldAutomaticallyUndoOnError() bool
type ForcePushCurrentBranch ¶
type ForcePushCurrentBranch struct {
// contains filtered or unexported fields
}
ForcePushCurrentBranch force-pushes the branch with the given name to the origin remote.
func (*ForcePushCurrentBranch) CreateAbortProgram ¶
func (*ForcePushCurrentBranch) CreateAutomaticUndoError ¶
func (self *ForcePushCurrentBranch) CreateAutomaticUndoError() error
func (*ForcePushCurrentBranch) CreateContinueProgram ¶
func (*ForcePushCurrentBranch) Run ¶
func (self *ForcePushCurrentBranch) Run(args shared.RunArgs) error
func (*ForcePushCurrentBranch) ShouldAutomaticallyUndoOnError ¶
func (self *ForcePushCurrentBranch) ShouldAutomaticallyUndoOnError() bool
type Merge ¶
type Merge struct { Branch gitdomain.BranchName // contains filtered or unexported fields }
Merge merges the branch with the given name into the current branch.
func (*Merge) CreateAbortProgram ¶
func (*Merge) CreateAutomaticUndoError ¶
func (self *Merge) CreateAutomaticUndoError() error
func (*Merge) CreateContinueProgram ¶
func (*Merge) ShouldAutomaticallyUndoOnError ¶
func (self *Merge) ShouldAutomaticallyUndoOnError() bool
type MergeParent ¶
type MergeParent struct { CurrentBranch gitdomain.LocalBranchName ParentActiveInOtherWorktree bool // contains filtered or unexported fields }
MergeParent merges the branch that at runtime is the parent branch of the given branch into the given branch.
func (*MergeParent) CreateAbortProgram ¶
func (self *MergeParent) CreateAbortProgram() []shared.Opcode
func (*MergeParent) CreateAutomaticUndoError ¶
func (self *MergeParent) CreateAutomaticUndoError() error
func (*MergeParent) CreateContinueProgram ¶
func (self *MergeParent) CreateContinueProgram() []shared.Opcode
func (*MergeParent) ShouldAutomaticallyUndoOnError ¶
func (self *MergeParent) ShouldAutomaticallyUndoOnError() bool
type PreserveCheckoutHistory ¶
type PreserveCheckoutHistory struct { PreviousBranchCandidates gitdomain.LocalBranchNames // contains filtered or unexported fields }
PreserveCheckoutHistory does stuff.
func (*PreserveCheckoutHistory) CreateAbortProgram ¶
func (*PreserveCheckoutHistory) CreateAutomaticUndoError ¶
func (self *PreserveCheckoutHistory) CreateAutomaticUndoError() error
func (*PreserveCheckoutHistory) CreateContinueProgram ¶
func (*PreserveCheckoutHistory) Run ¶
func (self *PreserveCheckoutHistory) Run(args shared.RunArgs) error
func (*PreserveCheckoutHistory) ShouldAutomaticallyUndoOnError ¶
func (self *PreserveCheckoutHistory) ShouldAutomaticallyUndoOnError() bool
type PullCurrentBranch ¶
type PullCurrentBranch struct {
// contains filtered or unexported fields
}
PullCurrentBranch updates the branch with the given name with commits from its remote.
func (*PullCurrentBranch) CreateAbortProgram ¶
func (*PullCurrentBranch) CreateAutomaticUndoError ¶
func (self *PullCurrentBranch) CreateAutomaticUndoError() error
func (*PullCurrentBranch) CreateContinueProgram ¶
func (*PullCurrentBranch) ShouldAutomaticallyUndoOnError ¶
func (self *PullCurrentBranch) ShouldAutomaticallyUndoOnError() bool
type PushCurrentBranch ¶
type PushCurrentBranch struct { CurrentBranch gitdomain.LocalBranchName // contains filtered or unexported fields }
PushCurrentBranch pushes the current branch to its existing tracking branch.
func (*PushCurrentBranch) CreateAbortProgram ¶
func (*PushCurrentBranch) CreateAutomaticUndoError ¶
func (self *PushCurrentBranch) CreateAutomaticUndoError() error
func (*PushCurrentBranch) CreateContinueProgram ¶
func (self *PushCurrentBranch) CreateContinueProgram() []shared.Opcode
func (*PushCurrentBranch) ShouldAutomaticallyUndoOnError ¶
func (self *PushCurrentBranch) ShouldAutomaticallyUndoOnError() bool
type PushTags ¶
type PushTags struct {
// contains filtered or unexported fields
}
PushTags pushes newly created Git tags to origin.
func (*PushTags) CreateAbortProgram ¶
func (*PushTags) CreateAutomaticUndoError ¶
func (self *PushTags) CreateAutomaticUndoError() error
func (*PushTags) CreateContinueProgram ¶
func (*PushTags) ShouldAutomaticallyUndoOnError ¶
func (self *PushTags) ShouldAutomaticallyUndoOnError() bool
type QueueMessage ¶
type QueueMessage struct { Message string // contains filtered or unexported fields }
func (*QueueMessage) CreateAbortProgram ¶
func (*QueueMessage) CreateAutomaticUndoError ¶
func (self *QueueMessage) CreateAutomaticUndoError() error
func (*QueueMessage) CreateContinueProgram ¶
func (*QueueMessage) ShouldAutomaticallyUndoOnError ¶
func (self *QueueMessage) ShouldAutomaticallyUndoOnError() bool
type RebaseBranch ¶
type RebaseBranch struct { Branch gitdomain.BranchName // contains filtered or unexported fields }
RebaseBranch rebases the current branch against the branch with the given name.
func (*RebaseBranch) CreateAbortProgram ¶
func (self *RebaseBranch) CreateAbortProgram() []shared.Opcode
func (*RebaseBranch) CreateAutomaticUndoError ¶
func (self *RebaseBranch) CreateAutomaticUndoError() error
func (*RebaseBranch) CreateContinueProgram ¶
func (self *RebaseBranch) CreateContinueProgram() []shared.Opcode
func (*RebaseBranch) ShouldAutomaticallyUndoOnError ¶
func (self *RebaseBranch) ShouldAutomaticallyUndoOnError() bool
type RebaseFeatureTrackingBranch ¶
type RebaseFeatureTrackingBranch struct { RemoteBranch gitdomain.RemoteBranchName // contains filtered or unexported fields }
RebaseFeatureTrackingBranch rebases the current feature branch against its tracking branch.
func (*RebaseFeatureTrackingBranch) CreateAbortProgram ¶
func (*RebaseFeatureTrackingBranch) CreateAutomaticUndoError ¶
func (self *RebaseFeatureTrackingBranch) CreateAutomaticUndoError() error
func (*RebaseFeatureTrackingBranch) CreateContinueProgram ¶
func (*RebaseFeatureTrackingBranch) Run ¶
func (self *RebaseFeatureTrackingBranch) Run(args shared.RunArgs) error
func (*RebaseFeatureTrackingBranch) ShouldAutomaticallyUndoOnError ¶
func (self *RebaseFeatureTrackingBranch) ShouldAutomaticallyUndoOnError() bool
type RebaseParent ¶
type RebaseParent struct { CurrentBranch gitdomain.LocalBranchName ParentActiveInOtherWorktree bool // contains filtered or unexported fields }
RebaseParent rebases the given branch against the branch that is its parent at runtime.
func (*RebaseParent) CreateAbortProgram ¶
func (self *RebaseParent) CreateAbortProgram() []shared.Opcode
func (*RebaseParent) CreateAutomaticUndoError ¶
func (self *RebaseParent) CreateAutomaticUndoError() error
func (*RebaseParent) CreateContinueProgram ¶
func (self *RebaseParent) CreateContinueProgram() []shared.Opcode
func (*RebaseParent) ShouldAutomaticallyUndoOnError ¶
func (self *RebaseParent) ShouldAutomaticallyUndoOnError() bool
type RemoveBranchFromLineage ¶
type RemoveBranchFromLineage struct { Branch gitdomain.LocalBranchName // contains filtered or unexported fields }
func (*RemoveBranchFromLineage) CreateAbortProgram ¶
func (*RemoveBranchFromLineage) CreateAutomaticUndoError ¶
func (self *RemoveBranchFromLineage) CreateAutomaticUndoError() error
func (*RemoveBranchFromLineage) CreateContinueProgram ¶
func (*RemoveBranchFromLineage) Run ¶
func (self *RemoveBranchFromLineage) Run(args shared.RunArgs) error
func (*RemoveBranchFromLineage) ShouldAutomaticallyUndoOnError ¶
func (self *RemoveBranchFromLineage) ShouldAutomaticallyUndoOnError() bool
type RemoveFromObservedBranches ¶
type RemoveFromObservedBranches struct { Branch gitdomain.LocalBranchName // contains filtered or unexported fields }
RemoveFromObservedBranches removes the branch with the given name as an observed branch.
func (*RemoveFromObservedBranches) CreateAbortProgram ¶
func (*RemoveFromObservedBranches) CreateAutomaticUndoError ¶
func (self *RemoveFromObservedBranches) CreateAutomaticUndoError() error
func (*RemoveFromObservedBranches) CreateContinueProgram ¶
func (*RemoveFromObservedBranches) Run ¶
func (self *RemoveFromObservedBranches) Run(args shared.RunArgs) error
func (*RemoveFromObservedBranches) ShouldAutomaticallyUndoOnError ¶
func (self *RemoveFromObservedBranches) ShouldAutomaticallyUndoOnError() bool
type RemoveFromPerennialBranches ¶
type RemoveFromPerennialBranches struct { Branch gitdomain.LocalBranchName // contains filtered or unexported fields }
RemoveFromPerennialBranches removes the branch with the given name as a perennial branch.
func (*RemoveFromPerennialBranches) CreateAbortProgram ¶
func (*RemoveFromPerennialBranches) CreateAutomaticUndoError ¶
func (self *RemoveFromPerennialBranches) CreateAutomaticUndoError() error
func (*RemoveFromPerennialBranches) CreateContinueProgram ¶
func (*RemoveFromPerennialBranches) Run ¶
func (self *RemoveFromPerennialBranches) Run(args shared.RunArgs) error
func (*RemoveFromPerennialBranches) ShouldAutomaticallyUndoOnError ¶
func (self *RemoveFromPerennialBranches) ShouldAutomaticallyUndoOnError() bool
type RemoveGlobalConfig ¶
type RemoveGlobalConfig struct { Key gitconfig.Key // the config key to remove // contains filtered or unexported fields }
func (*RemoveGlobalConfig) CreateAbortProgram ¶
func (*RemoveGlobalConfig) CreateAutomaticUndoError ¶
func (self *RemoveGlobalConfig) CreateAutomaticUndoError() error
func (*RemoveGlobalConfig) CreateContinueProgram ¶
func (*RemoveGlobalConfig) ShouldAutomaticallyUndoOnError ¶
func (self *RemoveGlobalConfig) ShouldAutomaticallyUndoOnError() bool
type RemoveLocalConfig ¶
type RemoveLocalConfig struct { Key gitconfig.Key // the config key to remove // contains filtered or unexported fields }
func (*RemoveLocalConfig) CreateAbortProgram ¶
func (*RemoveLocalConfig) CreateAutomaticUndoError ¶
func (self *RemoveLocalConfig) CreateAutomaticUndoError() error
func (*RemoveLocalConfig) CreateContinueProgram ¶
func (*RemoveLocalConfig) ShouldAutomaticallyUndoOnError ¶
func (self *RemoveLocalConfig) ShouldAutomaticallyUndoOnError() bool
type ResetCommitsInCurrentBranch ¶
type ResetCommitsInCurrentBranch struct { Parent gitdomain.LocalBranchName // contains filtered or unexported fields }
ResetCommitsInCurrentBranch resets all commits in the current branch.
func (*ResetCommitsInCurrentBranch) CreateAbortProgram ¶
func (*ResetCommitsInCurrentBranch) CreateAutomaticUndoError ¶
func (self *ResetCommitsInCurrentBranch) CreateAutomaticUndoError() error
func (*ResetCommitsInCurrentBranch) CreateContinueProgram ¶
func (*ResetCommitsInCurrentBranch) Run ¶
func (self *ResetCommitsInCurrentBranch) Run(args shared.RunArgs) error
func (*ResetCommitsInCurrentBranch) ShouldAutomaticallyUndoOnError ¶
func (self *ResetCommitsInCurrentBranch) ShouldAutomaticallyUndoOnError() bool
type ResetCurrentBranchToSHA ¶
type ResetCurrentBranchToSHA struct { Hard bool MustHaveSHA gitdomain.SHA SetToSHA gitdomain.SHA // contains filtered or unexported fields }
ResetCurrentBranchToSHA undoes all commits on the current branch all the way until the given SHA.
func (*ResetCurrentBranchToSHA) CreateAbortProgram ¶
func (*ResetCurrentBranchToSHA) CreateAutomaticUndoError ¶
func (self *ResetCurrentBranchToSHA) CreateAutomaticUndoError() error
func (*ResetCurrentBranchToSHA) CreateContinueProgram ¶
func (*ResetCurrentBranchToSHA) Run ¶
func (self *ResetCurrentBranchToSHA) Run(args shared.RunArgs) error
func (*ResetCurrentBranchToSHA) ShouldAutomaticallyUndoOnError ¶
func (self *ResetCurrentBranchToSHA) ShouldAutomaticallyUndoOnError() bool
type ResetRemoteBranchToSHA ¶
type ResetRemoteBranchToSHA struct { Branch gitdomain.RemoteBranchName MustHaveSHA gitdomain.SHA SetToSHA gitdomain.SHA // contains filtered or unexported fields }
ResetRemoteBranchToSHA sets the given remote branch to the given SHA, but only if it currently has a particular SHA.
func (*ResetRemoteBranchToSHA) CreateAbortProgram ¶
func (*ResetRemoteBranchToSHA) CreateAutomaticUndoError ¶
func (self *ResetRemoteBranchToSHA) CreateAutomaticUndoError() error
func (*ResetRemoteBranchToSHA) CreateContinueProgram ¶
func (*ResetRemoteBranchToSHA) Run ¶
func (self *ResetRemoteBranchToSHA) Run(args shared.RunArgs) error
func (*ResetRemoteBranchToSHA) ShouldAutomaticallyUndoOnError ¶
func (self *ResetRemoteBranchToSHA) ShouldAutomaticallyUndoOnError() bool
type RestoreOpenChanges ¶
type RestoreOpenChanges struct {
// contains filtered or unexported fields
}
RestoreOpenChanges restores stashed away changes into the workspace.
func (*RestoreOpenChanges) CreateAbortProgram ¶
func (*RestoreOpenChanges) CreateAutomaticUndoError ¶
func (self *RestoreOpenChanges) CreateAutomaticUndoError() error
func (*RestoreOpenChanges) CreateContinueProgram ¶
func (*RestoreOpenChanges) ShouldAutomaticallyUndoOnError ¶
func (self *RestoreOpenChanges) ShouldAutomaticallyUndoOnError() bool
type RevertCommit ¶
RevertCommit adds a commit to the current branch that reverts the commit with the given SHA.
func (*RevertCommit) CreateAbortProgram ¶
func (*RevertCommit) CreateAutomaticUndoError ¶
func (self *RevertCommit) CreateAutomaticUndoError() error
func (*RevertCommit) CreateContinueProgram ¶
func (*RevertCommit) ShouldAutomaticallyUndoOnError ¶
func (self *RevertCommit) ShouldAutomaticallyUndoOnError() bool
type SetExistingParent ¶
type SetExistingParent struct { Ancestors gitdomain.LocalBranchNames Branch gitdomain.LocalBranchName // contains filtered or unexported fields }
SetExistingParent sets the first existing entry in the given ancestor list as the parent branch of the given branch.
func (*SetExistingParent) CreateAbortProgram ¶
func (*SetExistingParent) CreateAutomaticUndoError ¶
func (self *SetExistingParent) CreateAutomaticUndoError() error
func (*SetExistingParent) CreateContinueProgram ¶
func (*SetExistingParent) ShouldAutomaticallyUndoOnError ¶
func (self *SetExistingParent) ShouldAutomaticallyUndoOnError() bool
type SetGlobalConfig ¶
type SetGlobalConfig struct { Key gitconfig.Key Value string // contains filtered or unexported fields }
func (*SetGlobalConfig) CreateAbortProgram ¶
func (*SetGlobalConfig) CreateAutomaticUndoError ¶
func (self *SetGlobalConfig) CreateAutomaticUndoError() error
func (*SetGlobalConfig) CreateContinueProgram ¶
func (*SetGlobalConfig) ShouldAutomaticallyUndoOnError ¶
func (self *SetGlobalConfig) ShouldAutomaticallyUndoOnError() bool
type SetLocalConfig ¶
type SetLocalConfig struct { Key gitconfig.Key Value string // contains filtered or unexported fields }
func (*SetLocalConfig) CreateAbortProgram ¶
func (*SetLocalConfig) CreateAutomaticUndoError ¶
func (self *SetLocalConfig) CreateAutomaticUndoError() error
func (*SetLocalConfig) CreateContinueProgram ¶
func (*SetLocalConfig) ShouldAutomaticallyUndoOnError ¶
func (self *SetLocalConfig) ShouldAutomaticallyUndoOnError() bool
type SetParent ¶
type SetParent struct { Branch gitdomain.LocalBranchName Parent gitdomain.LocalBranchName // contains filtered or unexported fields }
SetParent sets the given parent branch as the parent of the given branch. Use ChangeParent to change an existing parent.
func (*SetParent) CreateAbortProgram ¶
func (*SetParent) CreateAutomaticUndoError ¶
func (self *SetParent) CreateAutomaticUndoError() error
func (*SetParent) CreateContinueProgram ¶
func (*SetParent) ShouldAutomaticallyUndoOnError ¶
func (self *SetParent) ShouldAutomaticallyUndoOnError() bool
type SetParentIfBranchExists ¶
type SetParentIfBranchExists struct { Branch gitdomain.LocalBranchName Parent gitdomain.LocalBranchName // contains filtered or unexported fields }
SetParentIfBranchExists sets the given parent branch as the parent of the given branch, but only the latter exists.
func (*SetParentIfBranchExists) CreateAbortProgram ¶
func (*SetParentIfBranchExists) CreateAutomaticUndoError ¶
func (self *SetParentIfBranchExists) CreateAutomaticUndoError() error
func (*SetParentIfBranchExists) CreateContinueProgram ¶
func (*SetParentIfBranchExists) Run ¶
func (self *SetParentIfBranchExists) Run(args shared.RunArgs) error
func (*SetParentIfBranchExists) ShouldAutomaticallyUndoOnError ¶
func (self *SetParentIfBranchExists) ShouldAutomaticallyUndoOnError() bool
type SkipCurrentBranch ¶
type SkipCurrentBranch struct {
// contains filtered or unexported fields
}
SkipCurrentBranch is a mock opcode to be used instead of running another program. This is used when ignoring the remaining opcodes for a particular branch.
func (*SkipCurrentBranch) CreateAbortProgram ¶
func (*SkipCurrentBranch) CreateAutomaticUndoError ¶
func (self *SkipCurrentBranch) CreateAutomaticUndoError() error
func (*SkipCurrentBranch) CreateContinueProgram ¶
func (*SkipCurrentBranch) ShouldAutomaticallyUndoOnError ¶
func (self *SkipCurrentBranch) ShouldAutomaticallyUndoOnError() bool
type SquashMerge ¶
type SquashMerge struct { Branch gitdomain.LocalBranchName CommitMessage gitdomain.CommitMessage Parent gitdomain.LocalBranchName // contains filtered or unexported fields }
SquashMerge squash merges the branch with the given name into the current branch.
func (*SquashMerge) CreateAbortProgram ¶
func (self *SquashMerge) CreateAbortProgram() []shared.Opcode
func (*SquashMerge) CreateAutomaticUndoError ¶
func (self *SquashMerge) CreateAutomaticUndoError() error
func (*SquashMerge) CreateContinueProgram ¶
func (*SquashMerge) ShouldAutomaticallyUndoOnError ¶
func (self *SquashMerge) ShouldAutomaticallyUndoOnError() bool
type StashOpenChanges ¶
type StashOpenChanges struct {
// contains filtered or unexported fields
}
func (*StashOpenChanges) CreateAbortProgram ¶
func (*StashOpenChanges) CreateAutomaticUndoError ¶
func (self *StashOpenChanges) CreateAutomaticUndoError() error
func (*StashOpenChanges) CreateContinueProgram ¶
func (*StashOpenChanges) ShouldAutomaticallyUndoOnError ¶
func (self *StashOpenChanges) ShouldAutomaticallyUndoOnError() bool
type UndoLastCommit ¶
type UndoLastCommit struct {
// contains filtered or unexported fields
}
func (*UndoLastCommit) CreateAbortProgram ¶
func (*UndoLastCommit) CreateAutomaticUndoError ¶
func (self *UndoLastCommit) CreateAutomaticUndoError() error
func (*UndoLastCommit) CreateContinueProgram ¶
func (*UndoLastCommit) ShouldAutomaticallyUndoOnError ¶
func (self *UndoLastCommit) ShouldAutomaticallyUndoOnError() bool
type UpdateInitialBranchLocalSHA ¶
type UpdateInitialBranchLocalSHA struct { Branch gitdomain.LocalBranchName // contains filtered or unexported fields }
func (*UpdateInitialBranchLocalSHA) CreateAbortProgram ¶
func (*UpdateInitialBranchLocalSHA) CreateAutomaticUndoError ¶
func (self *UpdateInitialBranchLocalSHA) CreateAutomaticUndoError() error
func (*UpdateInitialBranchLocalSHA) CreateContinueProgram ¶
func (*UpdateInitialBranchLocalSHA) Run ¶
func (self *UpdateInitialBranchLocalSHA) Run(args shared.RunArgs) error
func (*UpdateInitialBranchLocalSHA) ShouldAutomaticallyUndoOnError ¶
func (self *UpdateInitialBranchLocalSHA) ShouldAutomaticallyUndoOnError() bool
type UpdateProposalTarget ¶
type UpdateProposalTarget struct { NewTarget gitdomain.LocalBranchName ProposalNumber int // contains filtered or unexported fields }
UpdateProposalTarget updates the target of the proposal with the given number at the code hosting platform.
func (*UpdateProposalTarget) CreateAbortProgram ¶
func (*UpdateProposalTarget) CreateAutomaticUndoError ¶
func (self *UpdateProposalTarget) CreateAutomaticUndoError() error
func (*UpdateProposalTarget) CreateContinueProgram ¶
func (*UpdateProposalTarget) ShouldAutomaticallyUndoOnError ¶
func (self *UpdateProposalTarget) ShouldAutomaticallyUndoOnError() bool
Source Files ¶
- abort_merge.go
- abort_rebase.go
- add_to_perennial_branches.go
- change_parent.go
- checkout.go
- checkout_first_existing.go
- checkout_if_exists.go
- checkout_parent.go
- commit_open_changes.go
- commit_squashed_changes.go
- connector_merge_proposal.go
- continue_merge.go
- continue_rebase.go
- core.go
- create_and_checkout_branch_existing_parent.go
- create_branch.go
- create_proposal.go
- create_remote_branch.go
- create_tracking_branch.go
- delete_branch_if_empty_at_runtime.go
- delete_local_branch.go
- delete_parent_branch.go
- delete_tracking_branch.go
- discard_open_changes.go
- end_of_branch.go
- ensure_has_shippable_changes.go
- fetch_upstream.go
- force_push_current_branch.go
- merge.go
- merge_parent.go
- preserve_checkout_history.go
- pull_current_branch.go
- push_current_branch.go
- push_tags.go
- queue_message.go
- rebase_branch.go
- rebase_feature_tracking_branch.go
- rebase_parent.go
- remove_branch_from_lineage.go
- remove_from_observed_branches.go
- remove_from_perennial_branches.go
- remove_global_config.go
- remove_local_config.go
- reset_current_branch.go
- reset_current_branch_to_sha.go
- reset_remote_branch_to_sha.go
- restore_open_changes.go
- revert_commit.go
- set_existing_parent.go
- set_global_config.go
- set_local_config.go
- set_parent.go
- set_parent_if_branch_exists.go
- skip_current_branch.go
- squash_merge.go
- stash_open_changes.go
- undo_last_commit.go
- update_initial_branch_local_sha.go
- update_proposal_target.go