package
0.0.5
Repository: https://github.com/microsoft/go-infra.git
Documentation: pkg.go.dev

# Functions

AttemptDelete tries to delete the git dir.
CombinedOutput runs "git <args...>" in the given directory and returns the result.
No description provided by the author
NewTempGitRepo creates a gitRepo in temp storage.
Poll repeatedly checks using the given checker until it returns a successful result.
RevParse runs "git rev-parse <rev>" and returns the result with whitespace trimmed.
Run runs "git <args>" in the given directory, showing the command to the user in logs for diagnosability.
Show runs "git show <spec>" and returns the content.

# Structs

AzDOPATAuther adds a PAT into the https-style Azure DevOps repository URL.
GitHubPATAuther adds a username and password into the https-style GitHub URL.
GitHubSSHAuther turns an https-style GitHub URL into an SSH-style GitHub URL.
MultiAuther tries multiple authers in sequence.
NoAuther does nothing to URLs.

# Interfaces

PollChecker runs a check that returns a result.
URLAuther manipulates a Git repository URL (GitHub, AzDO, ...) such that Git commands taking a remote will work with the URL.