# Functions
CachedRemoteRefs returns the list of branches & tags for a remote which are currently cached locally.
CloneWithoutFilters clones a git repo but without the smudge filter enabled so that files in the working copy will be pointers and not real LFS data.
No description provided by the author
No description provided by the author
DefaultRemote returns the default remote based on: 1.
FormatGitDate converts a Go date into a git command line format date.
GetAllWorkTreeHEADs returns the refs that all worktrees are using as HEADs This returns all worktrees plus the master working copy, and works even if working dir is actually in a worktree right now Pass in the git storage dir (parent of 'objects') to work from.
Get summary information about a commit.
GetTrackedFiles returns a list of files which are tracked in Git which match the pattern specified (standard wildcard form) Both pattern and the results are relative to the current working directory, not the root of the repository.
No description provided by the author
No description provided by the author
IsVersionAtLeast compares 2 version strings (ok to be prefixed with 'git version', ignores).
Refs returns all of the local and remote branches and tags for the current repository.
No description provided by the author
Parse a Git date formatted in ISO 8601 format (%ci/%ai).
Get the type & name of a git reference.
RecentBranches returns branches with commit dates on or after the given date/time Return full Ref type for easier detection of duplicate SHAs etc since: refs with commits on or after this date will be included includeRemoteBranches: true to include refs on remote branches onlyRemote: set to non-blank to only include remote branches on a single remote.
RemoteBranchForLocalBranch returns the name (only) of the remote branch that the local branch is tracking If no specific branch is configured, returns local branch name.
RemoteForBranch returns the remote name that a given local branch is tracking (blank if none).
RemoteForCurrentBranch returns the name of the remote that the current branch is tracking.
No description provided by the author
RemoteRefForCurrentBranch returns the full remote ref (refs/remotes/{remote}/{remotebranch}) that the current branch is tracking.
RemoteRefs returns a list of branches & tags for a remote by actually accessing the remote vir git ls-remote.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ValidateRemote checks that a named remote is valid for use Mainly to check user-supplied remotes & fail more nicely.
ValidateRemoteURL checks that a string is a valid Git remote URL.
# Constants
current checkout.
No description provided by the author
No description provided by the author
stash or unknown.
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
For compatibility with git clone we must mirror all flags in CloneWithoutFilters.
Some top level information about a commit (only first line of message).
A git reference (branch, tag etc).
# Type aliases
No description provided by the author