gittestutil

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitAdd

func GitAdd(c *gitutil.Git, tb testing.TB, files ...string)

func GitCheckoutBranch

func GitCheckoutBranch(c *gitutil.Git, tb testing.TB, name string)

func GitCommit

func GitCommit(c *gitutil.Git, tb testing.TB, msg string)

func GitInit

func GitInit(c *gitutil.Git, tb testing.TB)

func GitServeHTTP

func GitServeHTTP(c *gitutil.Git, t testing.TB, opts ...GitServeOpt) (url string)

func GitSetMainUpstream

func GitSetMainUpstream(c *gitutil.Git, tb testing.TB, remote, target string)

func GitSetRemote

func GitSetRemote(c *gitutil.Git, tb testing.TB, name string, url string)

func GitTag

func GitTag(c *gitutil.Git, tb testing.TB, tag string)

func IsAmbiguousArgument

func IsAmbiguousArgument(err error) bool

func Mktmp

func Mktmp(tb testing.TB) string

Types

type GitServeOpt

type GitServeOpt func(*gitServe)

func WithAccessToken

func WithAccessToken(token string) GitServeOpt

Jump to

Keyboard shortcuts

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