gitest

package
v0.0.0-...-ac622a4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitBare

func InitBare(t *testing.T, path string)

Types

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func Clone

func Clone(t *testing.T, source, target string) Repo

func Init

func Init(t *testing.T, path string) Repo

func Open

func Open(t *testing.T, path string) Repo

func (Repo) Add

func (r Repo) Add(subPath string)

func (Repo) BranchSetUpstreamTo

func (r Repo) BranchSetUpstreamTo(remote, remoteBranch, branch string)

func (Repo) BranchShowCurrent

func (r Repo) BranchShowCurrent() string

func (Repo) Checkout

func (r Repo) Checkout(what string)

func (Repo) CheckoutBranch

func (r Repo) CheckoutBranch(name string)

func (Repo) Commit

func (r Repo) Commit(message string)

func (Repo) Fetch

func (r Repo) Fetch()

func (Repo) Merge

func (r Repo) Merge(what string)

func (Repo) Pull

func (r Repo) Pull()

func (Repo) Push

func (r Repo) Push()

func (Repo) PushSetUpstream

func (r Repo) PushSetUpstream(upstream, branch string)

func (Repo) RemoteAdd

func (r Repo) RemoteAdd(name, url string)

func (Repo) RemovePath

func (r Repo) RemovePath(subPath string)

func (Repo) RemovePathAdd

func (r Repo) RemovePathAdd(subPath string)

func (Repo) Repo

func (r Repo) Repo() git.Repo

func (Repo) RevParseHead

func (r Repo) RevParseHead() string

func (Repo) SetupCommitConfig

func (r Repo) SetupCommitConfig()

func (Repo) WriteFile

func (r Repo) WriteFile(subPath string, data string)

func (Repo) WriteFileAdd

func (r Repo) WriteFileAdd(subPath string, data string)

Jump to

Keyboard shortcuts

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