gitrepo

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertFileContent

func AssertFileContent(t testing.TB, path, expected string)

func AssertRepo

func AssertRepo(t testing.TB, dir string)

func CommitAll

func CommitAll(t testing.TB, dir, message string)

func DiffHEAD

func DiffHEAD(t testing.TB, workspace string) []byte

func Init

func Init(t testing.TB, dir string)

func InitMainBranch

func InitMainBranch(t testing.TB, dir string)

func RevParse

func RevParse(t testing.TB, dir, rev string) string

func Run

func Run(t testing.TB, dir string, args ...string) []byte

func SetupBasic

func SetupBasic(t testing.TB) string

func SetupWithChange

func SetupWithChange(t testing.TB, workspace string)

func SetupWithRemote

func SetupWithRemote(t testing.TB, remoteURL string) string

func WithCWD

func WithCWD(t testing.TB, dir string)

WithCWD changes the process working directory to dir and registers a cleanup to restore the previous cwd at end of test. The package-level cwd is shared, so callers must not run with t.Parallel().

func WriteFile

func WriteFile(t testing.TB, path, content string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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