vcs

package
v0.0.0-...-614ca16 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalRepo

type LocalRepo struct {
	Name string `yaml:"-" json:""`
	Path string `yaml:"path,omitempty" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*LocalRepo) CheckOut

func (r *LocalRepo) CheckOut(name git.BranchName) error

func (*LocalRepo) Commit

func (r *LocalRepo) Commit(message string, filesToAdd ...string) error

func (*LocalRepo) DoesBranchExist

func (r *LocalRepo) DoesBranchExist(ctx util.Logger, name string) (bool, error)

func (*LocalRepo) GetCurrentBranch

func (r *LocalRepo) GetCurrentBranch() git.BranchName

func (*LocalRepo) GetCurrentCommit

func (r *LocalRepo) GetCurrentCommit() string

func (*LocalRepo) GetMostRecentTagRef

func (r *LocalRepo) GetMostRecentTagRef(pattern string) (string, error)

func (*LocalRepo) GetUpstreamStatus

func (r *LocalRepo) GetUpstreamStatus() string

func (*LocalRepo) Git

func (r *LocalRepo) Git() (git.GitWrapper, error)

func (*LocalRepo) HasUpstream

func (r *LocalRepo) HasUpstream() bool

func (*LocalRepo) IsDirty

func (r *LocalRepo) IsDirty() bool

func (*LocalRepo) Push

func (r *LocalRepo) Push() error

func (*LocalRepo) SwitchToBranchAndPull

func (r *LocalRepo) SwitchToBranchAndPull(logger util.Logger, name string) error

func (*LocalRepo) SwitchToNewBranch

func (r *LocalRepo) SwitchToNewBranch(ctx util.Logger, parent, child string) error

SwitchToNewBranch pulls the current branch, then creates a new branch based on it and checks it out.

Jump to

Keyboard shortcuts

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