Documentation ¶
Overview ¶
Package git provides an integration with the git command
Index ¶
- func Clean(output string, err error) (string, error)
- func CleanAllLines(output string, err error) ([]string, error)
- func ExtractRepoFromConfig(ctx context.Context) (result config.Repo, err error)
- func ExtractRepoFromURL(rawurl string) (config.Repo, error)
- func IsRepo(ctx context.Context) bool
- func Run(ctx context.Context, args ...string) (string, error)
- func RunWithEnv(ctx context.Context, env []string, args ...string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanAllLines ¶ added in v1.12.0
CleanAllLines returns all the non empty lines of the output, cleaned up.
func ExtractRepoFromConfig ¶ added in v0.140.0
ExtractRepoFromConfig gets the repo name from the Git config.
func ExtractRepoFromURL ¶ added in v0.140.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.