Documentation ¶
Index ¶
- func GitAdd(c *Git, tb testing.TB, files ...string)
- func GitCheckoutBranch(c *Git, tb testing.TB, name string)
- func GitCommit(c *Git, tb testing.TB, msg string)
- func GitInit(c *Git, tb testing.TB)
- func GitServeHTTP(c *Git, t testing.TB, opts ...GitServeOpt) (url string)
- func GitSetMainUpstream(c *Git, tb testing.TB, remote, target string)
- func GitSetRemote(c *Git, tb testing.TB, name string, url string)
- func GitTag(c *Git, tb testing.TB, tag string)
- func IsAmbiguousArgument(err error) bool
- func IsUnknownRevision(err error) bool
- func Mktmp(tb testing.TB) string
- type Git
- func (c *Git) FullCommit() (string, error)
- func (c *Git) GitDir() (string, error)
- func (c *Git) IsDirty() bool
- func (c *Git) IsInsideWorkTree() bool
- func (c *Git) RemoteURL() (string, error)
- func (c *Git) RootDir() (string, error)
- func (c *Git) ShortCommit() (string, error)
- func (c *Git) Tag() (string, error)
- type GitServeOpt
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitServeHTTP ¶ added in v0.11.0
func GitServeHTTP(c *Git, t testing.TB, opts ...GitServeOpt) (url string)
func GitSetMainUpstream ¶ added in v0.13.0
func IsAmbiguousArgument ¶ added in v0.10.3
func IsUnknownRevision ¶ added in v0.10.3
Types ¶
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
Git represents an active git object
func (*Git) FullCommit ¶
func (*Git) IsInsideWorkTree ¶
func (*Git) ShortCommit ¶
type GitServeOpt ¶ added in v0.14.0
type GitServeOpt func(*gitServe)
func WithAccessToken ¶ added in v0.14.0
func WithAccessToken(token string) GitServeOpt
Click to show internal directories.
Click to hide internal directories.