sync

package
v12.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package sync provides functionality around syncing branches.

Index

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
}

Jump to

Keyboard shortcuts

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