gitrepo

package
v0.7.15 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFile added in v0.7.5

func AddFile(t *testing.T, workDir, filename string)

AddFile stages a file in the git repo at workDir.

func GitEnv added in v0.7.5

func GitEnv(dir string) []string

GitEnv returns a clean environment for git commands isolated to dir.

func SetupGitRepo

func SetupGitRepo(t *testing.T, org, repo string) string

SetupGitRepo creates a temp directory with a git repo and a remote pointing to github.com/{org}/{repo}. Returns the directory path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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