Documentation ¶
Overview ¶
Package sync provides functionality around syncing branches.
Index ¶
- func BranchProgram(branch gitdomain.BranchInfo, args BranchProgramArgs)
- func BranchesProgram(args BranchesProgramArgs)
- func ContributionBranchProgram(prog *program.Program, branch gitdomain.BranchInfo)
- func ExistingBranchProgram(list *program.Program, branch gitdomain.BranchInfo, parentOtherWorktree bool, ...)
- func FeatureBranchProgram(args featureBranchArgs)
- func ObservedBranchProgram(branch gitdomain.BranchInfo, prog *program.Program)
- func ParkedBranchProgram(initialBranch gitdomain.LocalBranchName, args featureBranchArgs)
- func PerennialBranchProgram(branch gitdomain.BranchInfo, args BranchProgramArgs)
- func RemoveBranchFromLineage(args RemoveBranchFromLineageArgs)
- type BranchProgramArgs
- type BranchesProgramArgs
- type RemoveBranchFromLineageArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BranchProgram ¶
func BranchProgram(branch gitdomain.BranchInfo, args BranchProgramArgs)
BranchProgram syncs the given branch.
func BranchesProgram ¶
func BranchesProgram(args BranchesProgramArgs)
BranchesProgram syncs all given branches.
func ContributionBranchProgram ¶ added in v12.1.0
func ContributionBranchProgram(prog *program.Program, branch gitdomain.BranchInfo)
FeatureBranchProgram adds the opcodes to sync the feature branch with the given name.
func ExistingBranchProgram ¶
func ExistingBranchProgram(list *program.Program, branch gitdomain.BranchInfo, parentOtherWorktree bool, args BranchProgramArgs)
ExistingBranchProgram provides the opcode to sync a particular branch.
func FeatureBranchProgram ¶
func FeatureBranchProgram(args featureBranchArgs)
FeatureBranchProgram adds the opcodes to sync the feature branch with the given name.
func ObservedBranchProgram ¶ added in v12.1.0
func ObservedBranchProgram(branch gitdomain.BranchInfo, prog *program.Program)
PerennialBranchProgram adds the opcodes to sync the observed branch with the given name.
func ParkedBranchProgram ¶ added in v12.1.0
func ParkedBranchProgram(initialBranch gitdomain.LocalBranchName, args featureBranchArgs)
ParkedBranchProgram adds the opcodes to sync the parked branch with the given name.
func PerennialBranchProgram ¶
func PerennialBranchProgram(branch gitdomain.BranchInfo, args BranchProgramArgs)
PerennialBranchProgram adds the opcodes to sync the perennial branch with the given name.
func RemoveBranchFromLineage ¶
func RemoveBranchFromLineage(args RemoveBranchFromLineageArgs)
Types ¶
type BranchProgramArgs ¶
type BranchProgramArgs struct { BranchInfos gitdomain.BranchInfos Config *configdomain.FullConfig InitialBranch gitdomain.LocalBranchName Program *program.Program PushBranch bool Remotes gitdomain.Remotes }
type BranchesProgramArgs ¶
type BranchesProgramArgs struct { BranchProgramArgs BranchesToSync gitdomain.BranchInfos DryRun bool HasOpenChanges bool InitialBranch gitdomain.LocalBranchName PreviousBranch gitdomain.LocalBranchName ShouldPushTags bool }
type RemoveBranchFromLineageArgs ¶
type RemoveBranchFromLineageArgs struct { Branch gitdomain.LocalBranchName Lineage configdomain.Lineage Parent gitdomain.LocalBranchName Program *program.Program }
Click to show internal directories.
Click to hide internal directories.