package
1.5.4
Repository: https://github.com/ohlinux/git-lfs.git
Documentation: pkg.go.dev

# 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
NewFilterProcessScanner constructs a new instance of the `*FilterProcessScanner` type which reads packets from the `io.Reader` "r", and writes packets to the `io.Writer`, "w".
NewPktlineWriter returns a new *PktlineWriter, which will write to the underlying data stream "w".
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

MaxPacketLength is the maximum total (header+payload) length encode-able within one packet using Git's pkt-line protocol.
A ref which can be used as a placeholder for before the first commit Equivalent to git mktree < /dev/null, useful for diffing before first commit.
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).
FilterProcessScanner provides a scanner-like interface capable of initializing the filter process with the Git parent, and scanning for requests across the protocol.
PktlineWriter is an implementation of `io.Writer` which writes data buffers "p" to an underlying pkt-line stream for use with the Git pkt-line format.
A git reference (branch, tag etc).
Request represents a single command sent to LFS from the parent Git process.

# Type aliases

No description provided by the author