git

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	Debug    bool
	Executor executor.ExecutorInterface
}

func NewGit

func NewGit(debug bool, executor executor.ExecutorInterface) *Git

func (*Git) Checkout

func (g *Git) Checkout(branch string)

func (*Git) CleanDeletedBranches

func (g *Git) CleanDeletedBranches()

func (*Git) CreateBranch

func (g *Git) CreateBranch(branch string) error

func (*Git) CreateEmptyCommit

func (g *Git) CreateEmptyCommit()

func (*Git) CurrentBranch

func (g *Git) CurrentBranch() string

func (*Git) DefaultBranch

func (g *Git) DefaultBranch() string

func (*Git) Fetch

func (g *Git) Fetch()

func (*Git) GetGitRootDir

func (g *Git) GetGitRootDir() string

func (*Git) Pull

func (g *Git) Pull()

func (*Git) PushBranch

func (g *Git) PushBranch(branch string)

func (*Git) Remotes

func (g *Git) Remotes() []string

func (*Git) RepoName

func (g *Git) RepoName() string

func (*Git) Reset

func (g *Git) Reset()

func (*Git) SetHeadRef

func (g *Git) SetHeadRef(defaultBranch string)

func (*Git) Stash

func (g *Git) Stash()

func (*Git) StashDrop

func (g *Git) StashDrop()

Jump to

Keyboard shortcuts

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