external_git

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 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 ExternalGit

type ExternalGit struct{}

func NewExternalGit

func NewExternalGit() (ExternalGit, error)

func (ExternalGit) Clone

func (ExternalGit) Clone(ops git.CloneOps) error

func (ExternalGit) CreateLightweightTag

func (eg ExternalGit) CreateLightweightTag(repo git.Repo, tag string, branch git.BranchName) error

func (ExternalGit) CurrentBranch

func (ExternalGit) CurrentBranch(repo git.Repo) (git.BranchName, error)

func (ExternalGit) DiffersFromRemote

func (g ExternalGit) DiffersFromRemote(repo git.Repo) (bool, error)

func (ExternalGit) Fetch

func (ExternalGit) Fetch(repo git.Repo) error

func (ExternalGit) HasChanges

func (ExternalGit) HasChanges(repo git.Repo) (bool, error)

func (ExternalGit) ListBranches

func (eg ExternalGit) ListBranches(repo git.Repo) ([]git.BranchName, error)

func (ExternalGit) ListRemotes

func (ExternalGit) ListRemotes(repo git.Repo) ([]git.Remote, error)

func (ExternalGit) Pull

func (eg ExternalGit) Pull(repo git.Repo, rebase bool) error

func (ExternalGit) PullBranch

func (eg ExternalGit) PullBranch(repo git.Repo, branch git.BranchName, rebase bool) error

func (ExternalGit) PushTag

func (eg ExternalGit) PushTag(repo git.Repo, tag git.Tag, remote git.Remote) error

func (ExternalGit) Status

func (g ExternalGit) Status(repo git.Repo) (git.StatusRes, error)

func (ExternalGit) Switch

func (eg ExternalGit) Switch(repo git.Repo, br git.BranchName, force bool) error

Jump to

Keyboard shortcuts

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