Documentation
¶
Index ¶
- Variables
- func CurrentBranch(ctx context.Context, path string) (string, error)
- func IsRepoRoot(ctx context.Context, path string) (bool, error)
- func RemoteUrl(ctx context.Context, path string) (string, error)
- func RunGit(ctx context.Context, dir string, args ...string) ([]byte, []byte, error)
- type EnvVars
- type Status
- type TupleList
Constants ¶
This section is empty.
Variables ¶
View Source
var AssumeSSHAuth = false
Functions ¶
func CurrentBranch ¶
func CurrentBranch(ctx context.Context, path string) (string, error)
func IsRepoRoot ¶
func IsRepoRoot(ctx context.Context, path string) (bool, error)
Types ¶
type EnvVars ¶
type EnvVars map[string]string
func (EnvVars) Deterministic ¶
func (vars EnvVars) Deterministic() TupleList
type Status ¶
type Status struct {
Revision string // Optional.
CommitTime time.Time // Optional.
Uncommitted bool // Required.
}
Status is the current state of a local repository.
func FetchStatus ¶
func FetchStatus(ctx context.Context, rootDir string) (Status, error)
type TupleList ¶
type TupleList [][2]string
func NoPromptEnv ¶
func NoPromptEnv() TupleList
func ResetConfigGlobal ¶ added in v0.0.78
func ResetConfigGlobal() (TupleList, func(), error)
Click to show internal directories.
Click to hide internal directories.