gitop

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IGitOperator

type IGitOperator interface {
	// Checkout local branch
	Checkout(branchName string, create bool) error

	// FetchOrigin fetch origin branches
	FetchOrigin() error

	// CurrentBranch just get current branch of your target repository.
	CurrentBranch() (string, error)

	// Merge would merge source into target branch. If current branch is not your target branch,
	// this function would automatically check out, then execute the merge command.
	Merge(source, target string) error
}

IGitOperator supports to manage the local git repository.

func NewBasedCmd

func NewBasedCmd(dir string) IGitOperator

NewBasedCmd generate a git operator based command line.

Jump to

Keyboard shortcuts

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