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
- func (self *AbortMerge) CreateAbortProgram() []shared.Opcode
- func (self *AbortMerge) CreateAutomaticAbortError() error
- func (self *AbortMerge) CreateContinueProgram() []shared.Opcode
- func (self *AbortMerge) Run(args shared.RunArgs) error
- func (self *AbortMerge) ShouldAutomaticallyAbortOnError() bool
- type AbortRebase
- func (self *AbortRebase) CreateAbortProgram() []shared.Opcode
- func (self *AbortRebase) CreateAutomaticAbortError() error
- func (self *AbortRebase) CreateContinueProgram() []shared.Opcode
- func (self *AbortRebase) Run(args shared.RunArgs) error
- func (self *AbortRebase) ShouldAutomaticallyAbortOnError() bool
- type AddToPerennialBranches
- func (self *AddToPerennialBranches) CreateAbortProgram() []shared.Opcode
- func (self *AddToPerennialBranches) CreateAutomaticAbortError() error
- func (self *AddToPerennialBranches) CreateContinueProgram() []shared.Opcode
- func (self *AddToPerennialBranches) Run(args shared.RunArgs) error
- func (self *AddToPerennialBranches) ShouldAutomaticallyAbortOnError() bool
- type ChangeParent
- func (self *ChangeParent) CreateAbortProgram() []shared.Opcode
- func (self *ChangeParent) CreateAutomaticAbortError() error
- func (self *ChangeParent) CreateContinueProgram() []shared.Opcode
- func (self *ChangeParent) Run(args shared.RunArgs) error
- func (self *ChangeParent) ShouldAutomaticallyAbortOnError() bool
- type Checkout
- type CheckoutIfExists
- func (self *CheckoutIfExists) CreateAbortProgram() []shared.Opcode
- func (self *CheckoutIfExists) CreateAutomaticAbortError() error
- func (self *CheckoutIfExists) CreateContinueProgram() []shared.Opcode
- func (self *CheckoutIfExists) Run(args shared.RunArgs) error
- func (self *CheckoutIfExists) ShouldAutomaticallyAbortOnError() bool
- type CheckoutParent
- func (self *CheckoutParent) CreateAbortProgram() []shared.Opcode
- func (self *CheckoutParent) CreateAutomaticAbortError() error
- func (self *CheckoutParent) CreateContinueProgram() []shared.Opcode
- func (self *CheckoutParent) Run(args shared.RunArgs) error
- func (self *CheckoutParent) ShouldAutomaticallyAbortOnError() bool
- type CommitOpenChanges
- func (self *CommitOpenChanges) CreateAbortProgram() []shared.Opcode
- func (self *CommitOpenChanges) CreateAutomaticAbortError() error
- func (self *CommitOpenChanges) CreateContinueProgram() []shared.Opcode
- func (self *CommitOpenChanges) Run(args shared.RunArgs) error
- func (self *CommitOpenChanges) ShouldAutomaticallyAbortOnError() bool
- type ConnectorMergeProposal
- func (self *ConnectorMergeProposal) CreateAbortProgram() []shared.Opcode
- func (self *ConnectorMergeProposal) CreateAutomaticAbortError() error
- func (self *ConnectorMergeProposal) CreateContinueProgram() []shared.Opcode
- func (self *ConnectorMergeProposal) Run(args shared.RunArgs) error
- func (self *ConnectorMergeProposal) ShouldAutomaticallyAbortOnError() bool
- type ContinueMerge
- func (self *ContinueMerge) CreateAbortProgram() []shared.Opcode
- func (self *ContinueMerge) CreateAutomaticAbortError() error
- func (self *ContinueMerge) CreateContinueProgram() []shared.Opcode
- func (self *ContinueMerge) Run(args shared.RunArgs) error
- func (self *ContinueMerge) ShouldAutomaticallyAbortOnError() bool
- type ContinueRebase
- func (self *ContinueRebase) CreateAbortProgram() []shared.Opcode
- func (self *ContinueRebase) CreateAutomaticAbortError() error
- func (self *ContinueRebase) CreateContinueProgram() []shared.Opcode
- func (self *ContinueRebase) Run(args shared.RunArgs) error
- func (self *ContinueRebase) ShouldAutomaticallyAbortOnError() bool
- type CreateBranch
- func (self *CreateBranch) CreateAbortProgram() []shared.Opcode
- func (self *CreateBranch) CreateAutomaticAbortError() error
- func (self *CreateBranch) CreateContinueProgram() []shared.Opcode
- func (self *CreateBranch) Run(args shared.RunArgs) error
- func (self *CreateBranch) ShouldAutomaticallyAbortOnError() bool
- type CreateBranchExistingParent
- func (self *CreateBranchExistingParent) CreateAbortProgram() []shared.Opcode
- func (self *CreateBranchExistingParent) CreateAutomaticAbortError() error
- func (self *CreateBranchExistingParent) CreateContinueProgram() []shared.Opcode
- func (self *CreateBranchExistingParent) Run(args shared.RunArgs) error
- func (self *CreateBranchExistingParent) ShouldAutomaticallyAbortOnError() bool
- type CreateProposal
- func (self *CreateProposal) CreateAbortProgram() []shared.Opcode
- func (self *CreateProposal) CreateAutomaticAbortError() error
- func (self *CreateProposal) CreateContinueProgram() []shared.Opcode
- func (self *CreateProposal) Run(args shared.RunArgs) error
- func (self *CreateProposal) ShouldAutomaticallyAbortOnError() bool
- type CreateRemoteBranch
- func (self *CreateRemoteBranch) CreateAbortProgram() []shared.Opcode
- func (self *CreateRemoteBranch) CreateAutomaticAbortError() error
- func (self *CreateRemoteBranch) CreateContinueProgram() []shared.Opcode
- func (self *CreateRemoteBranch) Run(args shared.RunArgs) error
- func (self *CreateRemoteBranch) ShouldAutomaticallyAbortOnError() bool
- type CreateTrackingBranch
- func (self *CreateTrackingBranch) CreateAbortProgram() []shared.Opcode
- func (self *CreateTrackingBranch) CreateAutomaticAbortError() error
- func (self *CreateTrackingBranch) CreateContinueProgram() []shared.Opcode
- func (self *CreateTrackingBranch) Run(args shared.RunArgs) error
- func (self *CreateTrackingBranch) ShouldAutomaticallyAbortOnError() bool
- type DeleteBranchIfEmptyAtRuntime
- func (self *DeleteBranchIfEmptyAtRuntime) CreateAbortProgram() []shared.Opcode
- func (self *DeleteBranchIfEmptyAtRuntime) CreateAutomaticAbortError() error
- func (self *DeleteBranchIfEmptyAtRuntime) CreateContinueProgram() []shared.Opcode
- func (self *DeleteBranchIfEmptyAtRuntime) Run(args shared.RunArgs) error
- func (self *DeleteBranchIfEmptyAtRuntime) ShouldAutomaticallyAbortOnError() bool
- type DeleteLocalBranch
- func (self *DeleteLocalBranch) CreateAbortProgram() []shared.Opcode
- func (self *DeleteLocalBranch) CreateAutomaticAbortError() error
- func (self *DeleteLocalBranch) CreateContinueProgram() []shared.Opcode
- func (self *DeleteLocalBranch) Run(args shared.RunArgs) error
- func (self *DeleteLocalBranch) ShouldAutomaticallyAbortOnError() bool
- type DeleteParentBranch
- func (self *DeleteParentBranch) CreateAbortProgram() []shared.Opcode
- func (self *DeleteParentBranch) CreateAutomaticAbortError() error
- func (self *DeleteParentBranch) CreateContinueProgram() []shared.Opcode
- func (self *DeleteParentBranch) Run(args shared.RunArgs) error
- func (self *DeleteParentBranch) ShouldAutomaticallyAbortOnError() bool
- type DeleteRemoteBranch
- func (self *DeleteRemoteBranch) CreateAbortProgram() []shared.Opcode
- func (self *DeleteRemoteBranch) CreateAutomaticAbortError() error
- func (self *DeleteRemoteBranch) CreateContinueProgram() []shared.Opcode
- func (self *DeleteRemoteBranch) Run(args shared.RunArgs) error
- func (self *DeleteRemoteBranch) ShouldAutomaticallyAbortOnError() bool
- type DeleteTrackingBranch
- func (self *DeleteTrackingBranch) CreateAbortProgram() []shared.Opcode
- func (self *DeleteTrackingBranch) CreateAutomaticAbortError() error
- func (self *DeleteTrackingBranch) CreateContinueProgram() []shared.Opcode
- func (self *DeleteTrackingBranch) Run(args shared.RunArgs) error
- func (self *DeleteTrackingBranch) ShouldAutomaticallyAbortOnError() bool
- type DiscardOpenChanges
- func (self *DiscardOpenChanges) CreateAbortProgram() []shared.Opcode
- func (self *DiscardOpenChanges) CreateAutomaticAbortError() error
- func (self *DiscardOpenChanges) CreateContinueProgram() []shared.Opcode
- func (self *DiscardOpenChanges) Run(args shared.RunArgs) error
- func (self *DiscardOpenChanges) ShouldAutomaticallyAbortOnError() bool
- type EnsureHasShippableChanges
- func (self *EnsureHasShippableChanges) CreateAbortProgram() []shared.Opcode
- func (self *EnsureHasShippableChanges) CreateAutomaticAbortError() error
- func (self *EnsureHasShippableChanges) CreateContinueProgram() []shared.Opcode
- func (self *EnsureHasShippableChanges) Run(args shared.RunArgs) error
- func (self *EnsureHasShippableChanges) ShouldAutomaticallyAbortOnError() bool
- type FetchUpstream
- func (self *FetchUpstream) CreateAbortProgram() []shared.Opcode
- func (self *FetchUpstream) CreateAutomaticAbortError() error
- func (self *FetchUpstream) CreateContinueProgram() []shared.Opcode
- func (self *FetchUpstream) Run(args shared.RunArgs) error
- func (self *FetchUpstream) ShouldAutomaticallyAbortOnError() bool
- type ForcePushCurrentBranch
- func (self *ForcePushCurrentBranch) CreateAbortProgram() []shared.Opcode
- func (self *ForcePushCurrentBranch) CreateAutomaticAbortError() error
- func (self *ForcePushCurrentBranch) CreateContinueProgram() []shared.Opcode
- func (self *ForcePushCurrentBranch) Run(args shared.RunArgs) error
- func (self *ForcePushCurrentBranch) ShouldAutomaticallyAbortOnError() bool
- type Merge
- type MergeParent
- func (self *MergeParent) CreateAbortProgram() []shared.Opcode
- func (self *MergeParent) CreateAutomaticAbortError() error
- func (self *MergeParent) CreateContinueProgram() []shared.Opcode
- func (self *MergeParent) Run(args shared.RunArgs) error
- func (self *MergeParent) ShouldAutomaticallyAbortOnError() bool
- type PreserveCheckoutHistory
- func (self *PreserveCheckoutHistory) CreateAbortProgram() []shared.Opcode
- func (self *PreserveCheckoutHistory) CreateAutomaticAbortError() error
- func (self *PreserveCheckoutHistory) CreateContinueProgram() []shared.Opcode
- func (self *PreserveCheckoutHistory) Run(args shared.RunArgs) error
- func (self *PreserveCheckoutHistory) ShouldAutomaticallyAbortOnError() bool
- type PullCurrentBranch
- func (self *PullCurrentBranch) CreateAbortProgram() []shared.Opcode
- func (self *PullCurrentBranch) CreateAutomaticAbortError() error
- func (self *PullCurrentBranch) CreateContinueProgram() []shared.Opcode
- func (self *PullCurrentBranch) Run(args shared.RunArgs) error
- func (self *PullCurrentBranch) ShouldAutomaticallyAbortOnError() bool
- type PushCurrentBranch
- func (self *PushCurrentBranch) CreateAbortProgram() []shared.Opcode
- func (self *PushCurrentBranch) CreateAutomaticAbortError() error
- func (self *PushCurrentBranch) CreateContinueProgram() []shared.Opcode
- func (self *PushCurrentBranch) Run(args shared.RunArgs) error
- func (self *PushCurrentBranch) ShouldAutomaticallyAbortOnError() bool
- type PushTags
- type QueueMessage
- func (self *QueueMessage) CreateAbortProgram() []shared.Opcode
- func (self *QueueMessage) CreateAutomaticAbortError() error
- func (self *QueueMessage) CreateContinueProgram() []shared.Opcode
- func (self *QueueMessage) Run(args shared.RunArgs) error
- func (self *QueueMessage) ShouldAutomaticallyAbortOnError() bool
- type RebaseBranch
- func (self *RebaseBranch) CreateAbortProgram() []shared.Opcode
- func (self *RebaseBranch) CreateAutomaticAbortError() error
- func (self *RebaseBranch) CreateContinueProgram() []shared.Opcode
- func (self *RebaseBranch) Run(args shared.RunArgs) error
- func (self *RebaseBranch) ShouldAutomaticallyAbortOnError() bool
- type RebaseParent
- func (self *RebaseParent) CreateAbortProgram() []shared.Opcode
- func (self *RebaseParent) CreateAutomaticAbortError() error
- func (self *RebaseParent) CreateContinueProgram() []shared.Opcode
- func (self *RebaseParent) Run(args shared.RunArgs) error
- func (self *RebaseParent) ShouldAutomaticallyAbortOnError() bool
- type RemoveBranchFromLineage
- func (self *RemoveBranchFromLineage) CreateAbortProgram() []shared.Opcode
- func (self *RemoveBranchFromLineage) CreateAutomaticAbortError() error
- func (self *RemoveBranchFromLineage) CreateContinueProgram() []shared.Opcode
- func (self *RemoveBranchFromLineage) Run(args shared.RunArgs) error
- func (self *RemoveBranchFromLineage) ShouldAutomaticallyAbortOnError() bool
- type RemoveFromPerennialBranches
- func (self *RemoveFromPerennialBranches) CreateAbortProgram() []shared.Opcode
- func (self *RemoveFromPerennialBranches) CreateAutomaticAbortError() error
- func (self *RemoveFromPerennialBranches) CreateContinueProgram() []shared.Opcode
- func (self *RemoveFromPerennialBranches) Run(args shared.RunArgs) error
- func (self *RemoveFromPerennialBranches) ShouldAutomaticallyAbortOnError() bool
- type RemoveGlobalConfig
- func (self *RemoveGlobalConfig) CreateAbortProgram() []shared.Opcode
- func (self *RemoveGlobalConfig) CreateAutomaticAbortError() error
- func (self *RemoveGlobalConfig) CreateContinueProgram() []shared.Opcode
- func (self *RemoveGlobalConfig) Run(args shared.RunArgs) error
- func (self *RemoveGlobalConfig) ShouldAutomaticallyAbortOnError() bool
- type RemoveLocalConfig
- func (self *RemoveLocalConfig) CreateAbortProgram() []shared.Opcode
- func (self *RemoveLocalConfig) CreateAutomaticAbortError() error
- func (self *RemoveLocalConfig) CreateContinueProgram() []shared.Opcode
- func (self *RemoveLocalConfig) Run(args shared.RunArgs) error
- func (self *RemoveLocalConfig) ShouldAutomaticallyAbortOnError() bool
- type ResetCurrentBranchToSHA
- func (self *ResetCurrentBranchToSHA) CreateAbortProgram() []shared.Opcode
- func (self *ResetCurrentBranchToSHA) CreateAutomaticAbortError() error
- func (self *ResetCurrentBranchToSHA) CreateContinueProgram() []shared.Opcode
- func (self *ResetCurrentBranchToSHA) Run(args shared.RunArgs) error
- func (self *ResetCurrentBranchToSHA) ShouldAutomaticallyAbortOnError() bool
- type ResetRemoteBranchToSHA
- func (self *ResetRemoteBranchToSHA) CreateAbortProgram() []shared.Opcode
- func (self *ResetRemoteBranchToSHA) CreateAutomaticAbortError() error
- func (self *ResetRemoteBranchToSHA) CreateContinueProgram() []shared.Opcode
- func (self *ResetRemoteBranchToSHA) Run(args shared.RunArgs) error
- func (self *ResetRemoteBranchToSHA) ShouldAutomaticallyAbortOnError() bool
- type RestoreOpenChanges
- func (self *RestoreOpenChanges) CreateAbortProgram() []shared.Opcode
- func (self *RestoreOpenChanges) CreateAutomaticAbortError() error
- func (self *RestoreOpenChanges) CreateContinueProgram() []shared.Opcode
- func (self *RestoreOpenChanges) Run(args shared.RunArgs) error
- func (self *RestoreOpenChanges) ShouldAutomaticallyAbortOnError() bool
- type RevertCommit
- func (self *RevertCommit) CreateAbortProgram() []shared.Opcode
- func (self *RevertCommit) CreateAutomaticAbortError() error
- func (self *RevertCommit) CreateContinueProgram() []shared.Opcode
- func (self *RevertCommit) Run(args shared.RunArgs) error
- func (self *RevertCommit) ShouldAutomaticallyAbortOnError() bool
- type SetExistingParent
- func (self *SetExistingParent) CreateAbortProgram() []shared.Opcode
- func (self *SetExistingParent) CreateAutomaticAbortError() error
- func (self *SetExistingParent) CreateContinueProgram() []shared.Opcode
- func (self *SetExistingParent) Run(args shared.RunArgs) error
- func (self *SetExistingParent) ShouldAutomaticallyAbortOnError() bool
- type SetGlobalConfig
- func (self *SetGlobalConfig) CreateAbortProgram() []shared.Opcode
- func (self *SetGlobalConfig) CreateAutomaticAbortError() error
- func (self *SetGlobalConfig) CreateContinueProgram() []shared.Opcode
- func (self *SetGlobalConfig) Run(args shared.RunArgs) error
- func (self *SetGlobalConfig) ShouldAutomaticallyAbortOnError() bool
- type SetLocalConfig
- func (self *SetLocalConfig) CreateAbortProgram() []shared.Opcode
- func (self *SetLocalConfig) CreateAutomaticAbortError() error
- func (self *SetLocalConfig) CreateContinueProgram() []shared.Opcode
- func (self *SetLocalConfig) Run(args shared.RunArgs) error
- func (self *SetLocalConfig) ShouldAutomaticallyAbortOnError() bool
- type SetParent
- type SetParentIfBranchExists
- func (self *SetParentIfBranchExists) CreateAbortProgram() []shared.Opcode
- func (self *SetParentIfBranchExists) CreateAutomaticAbortError() error
- func (self *SetParentIfBranchExists) CreateContinueProgram() []shared.Opcode
- func (self *SetParentIfBranchExists) Run(args shared.RunArgs) error
- func (self *SetParentIfBranchExists) ShouldAutomaticallyAbortOnError() bool
- type SkipCurrentBranch
- func (self *SkipCurrentBranch) CreateAbortProgram() []shared.Opcode
- func (self *SkipCurrentBranch) CreateAutomaticAbortError() error
- func (self *SkipCurrentBranch) CreateContinueProgram() []shared.Opcode
- func (self *SkipCurrentBranch) Run(_ shared.RunArgs) error
- func (self *SkipCurrentBranch) ShouldAutomaticallyAbortOnError() bool
- type SquashMerge
- func (self *SquashMerge) CreateAbortProgram() []shared.Opcode
- func (self *SquashMerge) CreateAutomaticAbortError() error
- func (self *SquashMerge) CreateContinueProgram() []shared.Opcode
- func (self *SquashMerge) Run(args shared.RunArgs) error
- func (self *SquashMerge) ShouldAutomaticallyAbortOnError() bool
- type StashOpenChanges
- func (self *StashOpenChanges) CreateAbortProgram() []shared.Opcode
- func (self *StashOpenChanges) CreateAutomaticAbortError() error
- func (self *StashOpenChanges) CreateContinueProgram() []shared.Opcode
- func (self *StashOpenChanges) Run(args shared.RunArgs) error
- func (self *StashOpenChanges) ShouldAutomaticallyAbortOnError() bool
- type UndoLastCommit
- func (self *UndoLastCommit) CreateAbortProgram() []shared.Opcode
- func (self *UndoLastCommit) CreateAutomaticAbortError() error
- func (self *UndoLastCommit) CreateContinueProgram() []shared.Opcode
- func (self *UndoLastCommit) Run(args shared.RunArgs) error
- func (self *UndoLastCommit) ShouldAutomaticallyAbortOnError() bool
- type UpdateInitialBranchLocalSHA
- func (self *UpdateInitialBranchLocalSHA) CreateAbortProgram() []shared.Opcode
- func (self *UpdateInitialBranchLocalSHA) CreateAutomaticAbortError() error
- func (self *UpdateInitialBranchLocalSHA) CreateContinueProgram() []shared.Opcode
- func (self *UpdateInitialBranchLocalSHA) Run(args shared.RunArgs) error
- func (self *UpdateInitialBranchLocalSHA) ShouldAutomaticallyAbortOnError() bool
- type UpdateProposalTarget
- func (self *UpdateProposalTarget) CreateAbortProgram() []shared.Opcode
- func (self *UpdateProposalTarget) CreateAutomaticAbortError() error
- func (self *UpdateProposalTarget) CreateContinueProgram() []shared.Opcode
- func (self *UpdateProposalTarget) Run(args shared.RunArgs) error
- func (self *UpdateProposalTarget) ShouldAutomaticallyAbortOnError() 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) CreateAutomaticAbortError ¶
func (self *AbortMerge) CreateAutomaticAbortError() error
func (*AbortMerge) CreateContinueProgram ¶
func (*AbortMerge) ShouldAutomaticallyAbortOnError ¶
func (self *AbortMerge) ShouldAutomaticallyAbortOnError() 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) CreateAutomaticAbortError ¶
func (self *AbortRebase) CreateAutomaticAbortError() error
func (*AbortRebase) CreateContinueProgram ¶
func (*AbortRebase) ShouldAutomaticallyAbortOnError ¶
func (self *AbortRebase) ShouldAutomaticallyAbortOnError() bool
type AddToPerennialBranches ¶
type AddToPerennialBranches struct { Branch domain.LocalBranchName // contains filtered or unexported fields }
AddToPerennialBranches adds the branch with the given name as a perennial branch.
func (*AddToPerennialBranches) CreateAbortProgram ¶
func (*AddToPerennialBranches) CreateAutomaticAbortError ¶
func (self *AddToPerennialBranches) CreateAutomaticAbortError() error
func (*AddToPerennialBranches) CreateContinueProgram ¶
func (*AddToPerennialBranches) Run ¶
func (self *AddToPerennialBranches) Run(args shared.RunArgs) error
func (*AddToPerennialBranches) ShouldAutomaticallyAbortOnError ¶
func (self *AddToPerennialBranches) ShouldAutomaticallyAbortOnError() bool
type ChangeParent ¶
type ChangeParent struct { Branch domain.LocalBranchName Parent domain.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) CreateAutomaticAbortError ¶
func (self *ChangeParent) CreateAutomaticAbortError() error
func (*ChangeParent) CreateContinueProgram ¶
func (*ChangeParent) ShouldAutomaticallyAbortOnError ¶
func (self *ChangeParent) ShouldAutomaticallyAbortOnError() bool
type Checkout ¶
type Checkout struct { Branch domain.LocalBranchName // contains filtered or unexported fields }
Checkout checks out a new branch.
func (*Checkout) CreateAbortProgram ¶
func (*Checkout) CreateAutomaticAbortError ¶
func (self *Checkout) CreateAutomaticAbortError() error
func (*Checkout) CreateContinueProgram ¶
func (*Checkout) ShouldAutomaticallyAbortOnError ¶
func (self *Checkout) ShouldAutomaticallyAbortOnError() bool
type CheckoutIfExists ¶
type CheckoutIfExists struct { Branch domain.LocalBranchName // contains filtered or unexported fields }
CheckoutIfExists does the same as Checkout but only if that branch actually exists.
func (*CheckoutIfExists) CreateAbortProgram ¶
func (*CheckoutIfExists) CreateAutomaticAbortError ¶
func (self *CheckoutIfExists) CreateAutomaticAbortError() error
func (*CheckoutIfExists) CreateContinueProgram ¶
func (*CheckoutIfExists) ShouldAutomaticallyAbortOnError ¶
func (self *CheckoutIfExists) ShouldAutomaticallyAbortOnError() bool
type CheckoutParent ¶
type CheckoutParent struct { CurrentBranch domain.LocalBranchName // contains filtered or unexported fields }
CheckoutParent checks out the parent branch of the current branch.
func (*CheckoutParent) CreateAbortProgram ¶
func (*CheckoutParent) CreateAutomaticAbortError ¶
func (self *CheckoutParent) CreateAutomaticAbortError() error
func (*CheckoutParent) CreateContinueProgram ¶
func (*CheckoutParent) ShouldAutomaticallyAbortOnError ¶
func (self *CheckoutParent) ShouldAutomaticallyAbortOnError() 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) CreateAutomaticAbortError ¶
func (self *CommitOpenChanges) CreateAutomaticAbortError() error
func (*CommitOpenChanges) CreateContinueProgram ¶
func (*CommitOpenChanges) ShouldAutomaticallyAbortOnError ¶
func (self *CommitOpenChanges) ShouldAutomaticallyAbortOnError() bool
type ConnectorMergeProposal ¶
type ConnectorMergeProposal struct { Branch domain.LocalBranchName CommitMessage string 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) CreateAutomaticAbortError ¶
func (self *ConnectorMergeProposal) CreateAutomaticAbortError() error
func (*ConnectorMergeProposal) CreateContinueProgram ¶
func (*ConnectorMergeProposal) Run ¶
func (self *ConnectorMergeProposal) Run(args shared.RunArgs) error
func (*ConnectorMergeProposal) ShouldAutomaticallyAbortOnError ¶
func (self *ConnectorMergeProposal) ShouldAutomaticallyAbortOnError() bool
ShouldAutomaticallyAbortOnError returns whether this opcode should cause the command to automatically abort 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) CreateAutomaticAbortError ¶
func (self *ContinueMerge) CreateAutomaticAbortError() error
func (*ContinueMerge) CreateContinueProgram ¶
func (self *ContinueMerge) CreateContinueProgram() []shared.Opcode
func (*ContinueMerge) ShouldAutomaticallyAbortOnError ¶
func (self *ContinueMerge) ShouldAutomaticallyAbortOnError() 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) CreateAutomaticAbortError ¶
func (self *ContinueRebase) CreateAutomaticAbortError() error
func (*ContinueRebase) CreateContinueProgram ¶
func (self *ContinueRebase) CreateContinueProgram() []shared.Opcode
func (*ContinueRebase) ShouldAutomaticallyAbortOnError ¶
func (self *ContinueRebase) ShouldAutomaticallyAbortOnError() bool
type CreateBranch ¶
type CreateBranch struct { Branch domain.LocalBranchName StartingPoint domain.Location // contains filtered or unexported fields }
CreateBranch creates a new branch but leaves the current branch unchanged.
func (*CreateBranch) CreateAbortProgram ¶
func (*CreateBranch) CreateAutomaticAbortError ¶
func (self *CreateBranch) CreateAutomaticAbortError() error
func (*CreateBranch) CreateContinueProgram ¶
func (*CreateBranch) ShouldAutomaticallyAbortOnError ¶
func (self *CreateBranch) ShouldAutomaticallyAbortOnError() bool
type CreateBranchExistingParent ¶
type CreateBranchExistingParent struct { Branch domain.LocalBranchName MainBranch domain.LocalBranchName Ancestors domain.LocalBranchNames // list of ancestors - uses the first existing ancestor in this list // contains filtered or unexported fields }
CreateBranchExistingParent creates a new branch with the first existing entry from the given ancestor list as its parent.
func (*CreateBranchExistingParent) CreateAbortProgram ¶
func (*CreateBranchExistingParent) CreateAutomaticAbortError ¶
func (self *CreateBranchExistingParent) CreateAutomaticAbortError() error
func (*CreateBranchExistingParent) CreateContinueProgram ¶
func (*CreateBranchExistingParent) Run ¶
func (self *CreateBranchExistingParent) Run(args shared.RunArgs) error
func (*CreateBranchExistingParent) ShouldAutomaticallyAbortOnError ¶
func (self *CreateBranchExistingParent) ShouldAutomaticallyAbortOnError() bool
type CreateProposal ¶
type CreateProposal struct { Branch domain.LocalBranchName // contains filtered or unexported fields }
CreateProposal creates a new pull request for the current branch.
func (*CreateProposal) CreateAbortProgram ¶
func (*CreateProposal) CreateAutomaticAbortError ¶
func (self *CreateProposal) CreateAutomaticAbortError() error
func (*CreateProposal) CreateContinueProgram ¶
func (*CreateProposal) ShouldAutomaticallyAbortOnError ¶
func (self *CreateProposal) ShouldAutomaticallyAbortOnError() bool
type CreateRemoteBranch ¶
type CreateRemoteBranch struct { Branch domain.LocalBranchName NoPushHook bool SHA domain.SHA // contains filtered or unexported fields }
CreateRemoteBranch pushes the given local branch up to origin.
func (*CreateRemoteBranch) CreateAbortProgram ¶
func (*CreateRemoteBranch) CreateAutomaticAbortError ¶
func (self *CreateRemoteBranch) CreateAutomaticAbortError() error
func (*CreateRemoteBranch) CreateContinueProgram ¶
func (*CreateRemoteBranch) ShouldAutomaticallyAbortOnError ¶
func (self *CreateRemoteBranch) ShouldAutomaticallyAbortOnError() bool
type CreateTrackingBranch ¶
type CreateTrackingBranch struct { Branch domain.LocalBranchName NoPushHook bool // 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) CreateAutomaticAbortError ¶
func (self *CreateTrackingBranch) CreateAutomaticAbortError() error
func (*CreateTrackingBranch) CreateContinueProgram ¶
func (*CreateTrackingBranch) ShouldAutomaticallyAbortOnError ¶
func (self *CreateTrackingBranch) ShouldAutomaticallyAbortOnError() bool
type DeleteBranchIfEmptyAtRuntime ¶
type DeleteBranchIfEmptyAtRuntime struct { Branch domain.LocalBranchName // contains filtered or unexported fields }
DeleteBranchIfEmptyAtRuntime allows running different opcodes based on a condition evaluated at runtime.
func (*DeleteBranchIfEmptyAtRuntime) CreateAbortProgram ¶
func (*DeleteBranchIfEmptyAtRuntime) CreateAutomaticAbortError ¶
func (self *DeleteBranchIfEmptyAtRuntime) CreateAutomaticAbortError() error
func (*DeleteBranchIfEmptyAtRuntime) CreateContinueProgram ¶
func (*DeleteBranchIfEmptyAtRuntime) Run ¶
func (self *DeleteBranchIfEmptyAtRuntime) Run(args shared.RunArgs) error
func (*DeleteBranchIfEmptyAtRuntime) ShouldAutomaticallyAbortOnError ¶
func (self *DeleteBranchIfEmptyAtRuntime) ShouldAutomaticallyAbortOnError() bool
type DeleteLocalBranch ¶
type DeleteLocalBranch struct { Branch domain.LocalBranchName Force bool // contains filtered or unexported fields }
DeleteLocalBranch deletes the branch with the given name.
func (*DeleteLocalBranch) CreateAbortProgram ¶
func (*DeleteLocalBranch) CreateAutomaticAbortError ¶
func (self *DeleteLocalBranch) CreateAutomaticAbortError() error
func (*DeleteLocalBranch) CreateContinueProgram ¶
func (*DeleteLocalBranch) ShouldAutomaticallyAbortOnError ¶
func (self *DeleteLocalBranch) ShouldAutomaticallyAbortOnError() bool
type DeleteParentBranch ¶
type DeleteParentBranch struct { Branch domain.LocalBranchName // contains filtered or unexported fields }
DeleteParentBranch removes the parent branch entry in the Git Town configuration.
func (*DeleteParentBranch) CreateAbortProgram ¶
func (*DeleteParentBranch) CreateAutomaticAbortError ¶
func (self *DeleteParentBranch) CreateAutomaticAbortError() error
func (*DeleteParentBranch) CreateContinueProgram ¶
func (*DeleteParentBranch) ShouldAutomaticallyAbortOnError ¶
func (self *DeleteParentBranch) ShouldAutomaticallyAbortOnError() bool
type DeleteRemoteBranch ¶
type DeleteRemoteBranch struct { Branch domain.RemoteBranchName // contains filtered or unexported fields }
DeleteRemoteBranch deletes the tracking branch of the given local branch.
func (*DeleteRemoteBranch) CreateAbortProgram ¶
func (*DeleteRemoteBranch) CreateAutomaticAbortError ¶
func (self *DeleteRemoteBranch) CreateAutomaticAbortError() error
func (*DeleteRemoteBranch) CreateContinueProgram ¶
func (*DeleteRemoteBranch) ShouldAutomaticallyAbortOnError ¶
func (self *DeleteRemoteBranch) ShouldAutomaticallyAbortOnError() bool
type DeleteTrackingBranch ¶
type DeleteTrackingBranch struct { Branch domain.RemoteBranchName // contains filtered or unexported fields }
DeleteTrackingBranch deletes the tracking branch of the given local branch.
func (*DeleteTrackingBranch) CreateAbortProgram ¶
func (*DeleteTrackingBranch) CreateAutomaticAbortError ¶
func (self *DeleteTrackingBranch) CreateAutomaticAbortError() error
func (*DeleteTrackingBranch) CreateContinueProgram ¶
func (*DeleteTrackingBranch) ShouldAutomaticallyAbortOnError ¶
func (self *DeleteTrackingBranch) ShouldAutomaticallyAbortOnError() 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) CreateAutomaticAbortError ¶
func (self *DiscardOpenChanges) CreateAutomaticAbortError() error
func (*DiscardOpenChanges) CreateContinueProgram ¶
func (*DiscardOpenChanges) ShouldAutomaticallyAbortOnError ¶
func (self *DiscardOpenChanges) ShouldAutomaticallyAbortOnError() bool
type EnsureHasShippableChanges ¶
type EnsureHasShippableChanges struct { Branch domain.LocalBranchName Parent domain.LocalBranchName // contains filtered or unexported fields }
EnsureHasShippableChanges asserts that the branch has unique changes not on the main branch.
func (*EnsureHasShippableChanges) CreateAbortProgram ¶
func (*EnsureHasShippableChanges) CreateAutomaticAbortError ¶
func (self *EnsureHasShippableChanges) CreateAutomaticAbortError() error
func (*EnsureHasShippableChanges) CreateContinueProgram ¶
func (*EnsureHasShippableChanges) Run ¶
func (self *EnsureHasShippableChanges) Run(args shared.RunArgs) error
func (*EnsureHasShippableChanges) ShouldAutomaticallyAbortOnError ¶
func (self *EnsureHasShippableChanges) ShouldAutomaticallyAbortOnError() bool
type FetchUpstream ¶
type FetchUpstream struct { Branch domain.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) CreateAutomaticAbortError ¶
func (self *FetchUpstream) CreateAutomaticAbortError() error
func (*FetchUpstream) CreateContinueProgram ¶
func (*FetchUpstream) ShouldAutomaticallyAbortOnError ¶
func (self *FetchUpstream) ShouldAutomaticallyAbortOnError() bool
type ForcePushCurrentBranch ¶
type ForcePushCurrentBranch struct { NoPushHook bool // contains filtered or unexported fields }
ForcePushCurrentBranch force-pushes the branch with the given name to the origin remote.
func (*ForcePushCurrentBranch) CreateAbortProgram ¶
func (*ForcePushCurrentBranch) CreateAutomaticAbortError ¶
func (self *ForcePushCurrentBranch) CreateAutomaticAbortError() error
func (*ForcePushCurrentBranch) CreateContinueProgram ¶
func (*ForcePushCurrentBranch) Run ¶
func (self *ForcePushCurrentBranch) Run(args shared.RunArgs) error
func (*ForcePushCurrentBranch) ShouldAutomaticallyAbortOnError ¶
func (self *ForcePushCurrentBranch) ShouldAutomaticallyAbortOnError() bool
type Merge ¶
type Merge struct { Branch domain.BranchName // contains filtered or unexported fields }
Merge merges the branch with the given name into the current branch.
func (*Merge) CreateAbortProgram ¶
func (*Merge) CreateAutomaticAbortError ¶
func (self *Merge) CreateAutomaticAbortError() error
func (*Merge) CreateContinueProgram ¶
func (*Merge) ShouldAutomaticallyAbortOnError ¶
func (self *Merge) ShouldAutomaticallyAbortOnError() bool
type MergeParent ¶
type MergeParent struct { CurrentBranch domain.LocalBranchName // 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) CreateAutomaticAbortError ¶
func (self *MergeParent) CreateAutomaticAbortError() error
func (*MergeParent) CreateContinueProgram ¶
func (self *MergeParent) CreateContinueProgram() []shared.Opcode
func (*MergeParent) ShouldAutomaticallyAbortOnError ¶
func (self *MergeParent) ShouldAutomaticallyAbortOnError() bool
type PreserveCheckoutHistory ¶
type PreserveCheckoutHistory struct { InitialBranch domain.LocalBranchName InitialPreviouslyCheckedOutBranch domain.LocalBranchName MainBranch domain.LocalBranchName // contains filtered or unexported fields }
PreserveCheckoutHistory does stuff.
func (*PreserveCheckoutHistory) CreateAbortProgram ¶
func (*PreserveCheckoutHistory) CreateAutomaticAbortError ¶
func (self *PreserveCheckoutHistory) CreateAutomaticAbortError() error
func (*PreserveCheckoutHistory) CreateContinueProgram ¶
func (*PreserveCheckoutHistory) Run ¶
func (self *PreserveCheckoutHistory) Run(args shared.RunArgs) error
func (*PreserveCheckoutHistory) ShouldAutomaticallyAbortOnError ¶
func (self *PreserveCheckoutHistory) ShouldAutomaticallyAbortOnError() 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) CreateAutomaticAbortError ¶
func (self *PullCurrentBranch) CreateAutomaticAbortError() error
func (*PullCurrentBranch) CreateContinueProgram ¶
func (*PullCurrentBranch) ShouldAutomaticallyAbortOnError ¶
func (self *PullCurrentBranch) ShouldAutomaticallyAbortOnError() bool
type PushCurrentBranch ¶
type PushCurrentBranch struct { CurrentBranch domain.LocalBranchName NoPushHook bool // contains filtered or unexported fields }
PushCurrentBranch pushes the current branch to its existing tracking branch.
func (*PushCurrentBranch) CreateAbortProgram ¶
func (*PushCurrentBranch) CreateAutomaticAbortError ¶
func (self *PushCurrentBranch) CreateAutomaticAbortError() error
func (*PushCurrentBranch) CreateContinueProgram ¶
func (*PushCurrentBranch) ShouldAutomaticallyAbortOnError ¶
func (self *PushCurrentBranch) ShouldAutomaticallyAbortOnError() bool
type PushTags ¶
type PushTags struct {
// contains filtered or unexported fields
}
PushTags pushes newly created Git tags to origin.
func (*PushTags) CreateAbortProgram ¶
func (*PushTags) CreateAutomaticAbortError ¶
func (self *PushTags) CreateAutomaticAbortError() error
func (*PushTags) CreateContinueProgram ¶
func (*PushTags) ShouldAutomaticallyAbortOnError ¶
func (self *PushTags) ShouldAutomaticallyAbortOnError() bool
type QueueMessage ¶
type QueueMessage struct { Message string // contains filtered or unexported fields }
func (*QueueMessage) CreateAbortProgram ¶
func (*QueueMessage) CreateAutomaticAbortError ¶
func (self *QueueMessage) CreateAutomaticAbortError() error
func (*QueueMessage) CreateContinueProgram ¶
func (*QueueMessage) ShouldAutomaticallyAbortOnError ¶
func (self *QueueMessage) ShouldAutomaticallyAbortOnError() bool
type RebaseBranch ¶
type RebaseBranch struct { Branch domain.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) CreateAutomaticAbortError ¶
func (self *RebaseBranch) CreateAutomaticAbortError() error
func (*RebaseBranch) CreateContinueProgram ¶
func (self *RebaseBranch) CreateContinueProgram() []shared.Opcode
func (*RebaseBranch) ShouldAutomaticallyAbortOnError ¶
func (self *RebaseBranch) ShouldAutomaticallyAbortOnError() bool
type RebaseParent ¶
type RebaseParent struct { CurrentBranch domain.LocalBranchName // 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) CreateAutomaticAbortError ¶
func (self *RebaseParent) CreateAutomaticAbortError() error
func (*RebaseParent) CreateContinueProgram ¶
func (self *RebaseParent) CreateContinueProgram() []shared.Opcode
func (*RebaseParent) ShouldAutomaticallyAbortOnError ¶
func (self *RebaseParent) ShouldAutomaticallyAbortOnError() bool
type RemoveBranchFromLineage ¶
type RemoveBranchFromLineage struct { Branch domain.LocalBranchName // contains filtered or unexported fields }
func (*RemoveBranchFromLineage) CreateAbortProgram ¶
func (*RemoveBranchFromLineage) CreateAutomaticAbortError ¶
func (self *RemoveBranchFromLineage) CreateAutomaticAbortError() error
func (*RemoveBranchFromLineage) CreateContinueProgram ¶
func (*RemoveBranchFromLineage) Run ¶
func (self *RemoveBranchFromLineage) Run(args shared.RunArgs) error
func (*RemoveBranchFromLineage) ShouldAutomaticallyAbortOnError ¶
func (self *RemoveBranchFromLineage) ShouldAutomaticallyAbortOnError() bool
type RemoveFromPerennialBranches ¶
type RemoveFromPerennialBranches struct { Branch domain.LocalBranchName // contains filtered or unexported fields }
RemoveFromPerennialBranches removes the branch with the given name as a perennial branch.
func (*RemoveFromPerennialBranches) CreateAbortProgram ¶
func (*RemoveFromPerennialBranches) CreateAutomaticAbortError ¶
func (self *RemoveFromPerennialBranches) CreateAutomaticAbortError() error
func (*RemoveFromPerennialBranches) CreateContinueProgram ¶
func (*RemoveFromPerennialBranches) Run ¶
func (self *RemoveFromPerennialBranches) Run(args shared.RunArgs) error
func (*RemoveFromPerennialBranches) ShouldAutomaticallyAbortOnError ¶
func (self *RemoveFromPerennialBranches) ShouldAutomaticallyAbortOnError() bool
type RemoveGlobalConfig ¶
type RemoveGlobalConfig struct { Key config.Key // the config key to remove // contains filtered or unexported fields }
func (*RemoveGlobalConfig) CreateAbortProgram ¶
func (*RemoveGlobalConfig) CreateAutomaticAbortError ¶
func (self *RemoveGlobalConfig) CreateAutomaticAbortError() error
func (*RemoveGlobalConfig) CreateContinueProgram ¶
func (*RemoveGlobalConfig) ShouldAutomaticallyAbortOnError ¶
func (self *RemoveGlobalConfig) ShouldAutomaticallyAbortOnError() bool
type RemoveLocalConfig ¶
type RemoveLocalConfig struct { Key config.Key // the config key to remove // contains filtered or unexported fields }
func (*RemoveLocalConfig) CreateAbortProgram ¶
func (*RemoveLocalConfig) CreateAutomaticAbortError ¶
func (self *RemoveLocalConfig) CreateAutomaticAbortError() error
func (*RemoveLocalConfig) CreateContinueProgram ¶
func (*RemoveLocalConfig) ShouldAutomaticallyAbortOnError ¶
func (self *RemoveLocalConfig) ShouldAutomaticallyAbortOnError() bool
type ResetCurrentBranchToSHA ¶
type ResetCurrentBranchToSHA struct { Hard bool MustHaveSHA domain.SHA SetToSHA domain.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) CreateAutomaticAbortError ¶
func (self *ResetCurrentBranchToSHA) CreateAutomaticAbortError() error
func (*ResetCurrentBranchToSHA) CreateContinueProgram ¶
func (*ResetCurrentBranchToSHA) Run ¶
func (self *ResetCurrentBranchToSHA) Run(args shared.RunArgs) error
func (*ResetCurrentBranchToSHA) ShouldAutomaticallyAbortOnError ¶
func (self *ResetCurrentBranchToSHA) ShouldAutomaticallyAbortOnError() bool
type ResetRemoteBranchToSHA ¶
type ResetRemoteBranchToSHA struct { Branch domain.RemoteBranchName MustHaveSHA domain.SHA SetToSHA domain.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) CreateAutomaticAbortError ¶
func (self *ResetRemoteBranchToSHA) CreateAutomaticAbortError() error
func (*ResetRemoteBranchToSHA) CreateContinueProgram ¶
func (*ResetRemoteBranchToSHA) Run ¶
func (self *ResetRemoteBranchToSHA) Run(args shared.RunArgs) error
func (*ResetRemoteBranchToSHA) ShouldAutomaticallyAbortOnError ¶
func (self *ResetRemoteBranchToSHA) ShouldAutomaticallyAbortOnError() bool
type RestoreOpenChanges ¶
type RestoreOpenChanges struct {
// contains filtered or unexported fields
}
RestoreOpenChanges restores stashed away changes into the workspace.
func (*RestoreOpenChanges) CreateAbortProgram ¶
func (*RestoreOpenChanges) CreateAutomaticAbortError ¶
func (self *RestoreOpenChanges) CreateAutomaticAbortError() error
func (*RestoreOpenChanges) CreateContinueProgram ¶
func (*RestoreOpenChanges) ShouldAutomaticallyAbortOnError ¶
func (self *RestoreOpenChanges) ShouldAutomaticallyAbortOnError() bool
type RevertCommit ¶
RevertCommit adds a commit to the current branch that reverts the commit with the given SHA.
func (*RevertCommit) CreateAbortProgram ¶
func (*RevertCommit) CreateAutomaticAbortError ¶
func (self *RevertCommit) CreateAutomaticAbortError() error
func (*RevertCommit) CreateContinueProgram ¶
func (*RevertCommit) ShouldAutomaticallyAbortOnError ¶
func (self *RevertCommit) ShouldAutomaticallyAbortOnError() bool
type SetExistingParent ¶
type SetExistingParent struct { Branch domain.LocalBranchName Ancestors domain.LocalBranchNames MainBranch domain.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) CreateAutomaticAbortError ¶
func (self *SetExistingParent) CreateAutomaticAbortError() error
func (*SetExistingParent) CreateContinueProgram ¶
func (*SetExistingParent) ShouldAutomaticallyAbortOnError ¶
func (self *SetExistingParent) ShouldAutomaticallyAbortOnError() bool
type SetGlobalConfig ¶
type SetGlobalConfig struct { Key config.Key Value string // contains filtered or unexported fields }
func (*SetGlobalConfig) CreateAbortProgram ¶
func (*SetGlobalConfig) CreateAutomaticAbortError ¶
func (self *SetGlobalConfig) CreateAutomaticAbortError() error
func (*SetGlobalConfig) CreateContinueProgram ¶
func (*SetGlobalConfig) ShouldAutomaticallyAbortOnError ¶
func (self *SetGlobalConfig) ShouldAutomaticallyAbortOnError() bool
type SetLocalConfig ¶
type SetLocalConfig struct { Key config.Key Value string // contains filtered or unexported fields }
func (*SetLocalConfig) CreateAbortProgram ¶
func (*SetLocalConfig) CreateAutomaticAbortError ¶
func (self *SetLocalConfig) CreateAutomaticAbortError() error
func (*SetLocalConfig) CreateContinueProgram ¶
func (*SetLocalConfig) ShouldAutomaticallyAbortOnError ¶
func (self *SetLocalConfig) ShouldAutomaticallyAbortOnError() bool
type SetParent ¶
type SetParent struct { Branch domain.LocalBranchName Parent domain.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) CreateAutomaticAbortError ¶
func (self *SetParent) CreateAutomaticAbortError() error
func (*SetParent) CreateContinueProgram ¶
func (*SetParent) ShouldAutomaticallyAbortOnError ¶
func (self *SetParent) ShouldAutomaticallyAbortOnError() bool
type SetParentIfBranchExists ¶
type SetParentIfBranchExists struct { Branch domain.LocalBranchName Parent domain.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) CreateAutomaticAbortError ¶
func (self *SetParentIfBranchExists) CreateAutomaticAbortError() error
func (*SetParentIfBranchExists) CreateContinueProgram ¶
func (*SetParentIfBranchExists) Run ¶
func (self *SetParentIfBranchExists) Run(args shared.RunArgs) error
func (*SetParentIfBranchExists) ShouldAutomaticallyAbortOnError ¶
func (self *SetParentIfBranchExists) ShouldAutomaticallyAbortOnError() 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) CreateAutomaticAbortError ¶
func (self *SkipCurrentBranch) CreateAutomaticAbortError() error
func (*SkipCurrentBranch) CreateContinueProgram ¶
func (*SkipCurrentBranch) ShouldAutomaticallyAbortOnError ¶
func (self *SkipCurrentBranch) ShouldAutomaticallyAbortOnError() bool
type SquashMerge ¶
type SquashMerge struct { Branch domain.LocalBranchName CommitMessage string Parent domain.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) CreateAutomaticAbortError ¶
func (self *SquashMerge) CreateAutomaticAbortError() error
func (*SquashMerge) CreateContinueProgram ¶
func (*SquashMerge) ShouldAutomaticallyAbortOnError ¶
func (self *SquashMerge) ShouldAutomaticallyAbortOnError() bool
type StashOpenChanges ¶
type StashOpenChanges struct {
// contains filtered or unexported fields
}
func (*StashOpenChanges) CreateAbortProgram ¶
func (*StashOpenChanges) CreateAutomaticAbortError ¶
func (self *StashOpenChanges) CreateAutomaticAbortError() error
func (*StashOpenChanges) CreateContinueProgram ¶
func (*StashOpenChanges) ShouldAutomaticallyAbortOnError ¶
func (self *StashOpenChanges) ShouldAutomaticallyAbortOnError() bool
type UndoLastCommit ¶
type UndoLastCommit struct {
// contains filtered or unexported fields
}
func (*UndoLastCommit) CreateAbortProgram ¶
func (*UndoLastCommit) CreateAutomaticAbortError ¶
func (self *UndoLastCommit) CreateAutomaticAbortError() error
func (*UndoLastCommit) CreateContinueProgram ¶
func (*UndoLastCommit) ShouldAutomaticallyAbortOnError ¶
func (self *UndoLastCommit) ShouldAutomaticallyAbortOnError() bool
type UpdateInitialBranchLocalSHA ¶
type UpdateInitialBranchLocalSHA struct { Branch domain.LocalBranchName // contains filtered or unexported fields }
func (*UpdateInitialBranchLocalSHA) CreateAbortProgram ¶
func (*UpdateInitialBranchLocalSHA) CreateAutomaticAbortError ¶
func (self *UpdateInitialBranchLocalSHA) CreateAutomaticAbortError() error
func (*UpdateInitialBranchLocalSHA) CreateContinueProgram ¶
func (*UpdateInitialBranchLocalSHA) Run ¶
func (self *UpdateInitialBranchLocalSHA) Run(args shared.RunArgs) error
func (*UpdateInitialBranchLocalSHA) ShouldAutomaticallyAbortOnError ¶
func (self *UpdateInitialBranchLocalSHA) ShouldAutomaticallyAbortOnError() bool
type UpdateProposalTarget ¶
type UpdateProposalTarget struct { ProposalNumber int NewTarget domain.LocalBranchName // contains filtered or unexported fields }
UpdateProposalTarget updates the target of the proposal with the given number at the code hosting service.
func (*UpdateProposalTarget) CreateAbortProgram ¶
func (*UpdateProposalTarget) CreateAutomaticAbortError ¶
func (self *UpdateProposalTarget) CreateAutomaticAbortError() error
func (*UpdateProposalTarget) CreateContinueProgram ¶
func (*UpdateProposalTarget) ShouldAutomaticallyAbortOnError ¶
func (self *UpdateProposalTarget) ShouldAutomaticallyAbortOnError() bool
Source Files ¶
- abort_merge.go
- abort_rebase.go
- add_to_perennial_branches.go
- change_parent.go
- checkout.go
- checkout_if_exists.go
- checkout_parent.go
- commit_open_changes.go
- connector_merge_proposal.go
- continue_merge.go
- continue_rebase.go
- core.go
- create_branch.go
- create_branch_existing_parent.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_remote_branch.go
- delete_tracking_branch.go
- discard_open_changes.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_parent.go
- remove_branch_from_lineage.go
- remove_from_perennial_branches.go
- remove_global_config.go
- remove_local_config.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