package
3.6.0-alpha.1+incompatible
Repository: https://github.com/megamsys/abcd.git
Documentation: pkg.go.dev
# Functions
IsRoot returns true if location is the root of a bare git repository.
No description provided by the author
No description provided by the author
NameFromRepositoryURL suggests a name for a repository URL based on the last segment of the path, or returns false.
NewRepository creates a new Repository.
NewRepositoryForBinary returns a Repository using the specified git executable.
NewRepositoryForBinary returns a Repository using the specified git executable and environment.
NewRepositoryForEnv creates a new Repository using the specified environment.
No description provided by the author
ParseRepository parses a string that may be in the Git format (git@) or URL format and extracts the appropriate value.
# Constants
Shallow maps to --depth=1, which clones a Git repository without downloading history.
# Variables
ErrGitNotAvailable will be returned if the git call fails because a git binary could not be found.
# Structs
No description provided by the author
GitError is returned when the underlying Git command returns a non-zero exit code.
SourceInfo stores information about the source code.
TimeoutError is returned when the underlying Git coommand times out before finishing.
# Interfaces
Repository represents a git source repository.