Documentation ¶
Index ¶
- func GetTargetBranches(tx meta.ReadTx, repo *git.Repo, includeStackRoots bool, mode TargetBranchMode) ([]plumbing.ReferenceName, error)
- func PlanForAmend(tx meta.ReadTx, repo *git.Repo, currentBranch plumbing.ReferenceName) ([]sequencer.RestackOp, error)
- func PlanForReparent(tx meta.ReadTx, repo *git.Repo, ...) ([]sequencer.RestackOp, error)
- func PlanForRestack(tx meta.ReadTx, repo *git.Repo, currentBranch plumbing.ReferenceName, ...) ([]sequencer.RestackOp, error)
- func PlanForSync(tx meta.ReadTx, repo *git.Repo, currentBranch plumbing.ReferenceName, ...) ([]sequencer.RestackOp, error)
- type TargetBranchMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTargetBranches ¶
func GetTargetBranches( tx meta.ReadTx, repo *git.Repo, includeStackRoots bool, mode TargetBranchMode, ) ([]plumbing.ReferenceName, error)
GetTargetBranches returns the branches to be restacked.
If `includeStackRoots` is true, the stack root branches (the immediate children of the trunk branches) are included in the result.
func PlanForAmend ¶
func PlanForReparent ¶
func PlanForRestack ¶
Types ¶
type TargetBranchMode ¶
type TargetBranchMode int
const ( // Target all branches in the repository. AllBranches TargetBranchMode = iota // The current branch and all its predecessors. CurrentAndParents // The current branch and all its successors. CurrentAndChildren // Branches of the current stack. (The stack root and all its successors.) CurrentStack )
Click to show internal directories.
Click to hide internal directories.