package
2.3.4+incompatible
Repository: https://github.com/stffabi/git-lfs.git
Documentation: pkg.go.dev
# Functions
AllRefs returns a slice of all references in a Git repository in the current working directory, or an error if those references could not be loaded.
AllRefs returns a slice of all references in a Git repository located in a the given working directory "wd", or an error if those references could not be loaded.
CachedRemoteRefs returns the list of branches & tags for a remote which are currently cached locally.
No description provided by the author
Checkout performs an invocation of `git-checkout(1)` applying the given treeish, paths, and force option, if given.
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.
No description provided by the author
Fetch performs a fetch with no arguments against the given remotes.
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.
GetAttributePaths returns a list of entries in .gitattributes which are configured with the filter=lfs attribute workingDIr is the root of the working copy gitDir is the root of the git repo.
Get summary information about a commit.
GetFilesChanged returns a list of files which were changed, either between 2 commits, or at a single commit if you only supply one argument and a blank string for the other.
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
No description provided by the author
IsBare returns whether or not a repository is bare.
IsFileModified returns whether the filepath specified is modified according to `git status`.
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
No description provided by the author
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".
NewObjectScanner constructs a new instance of the `*ObjectScanner` type and returns it.
NewObjectScannerFrom returns a new `*ObjectScanner` populated with data from the given `io.Reader`, "r".
NewPktlineWriter returns a new *PktlineWriter, which will write to the underlying data stream "w".
NewRevListScanner instantiates a new RevListScanner instance scanning all revisions reachable by refs contained in "include" and not reachable by any refs included in "excluded", using the *ScanRefsOptions "opt" configuration.
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
UpdateRef moves the given ref to a new sha with a given reason (and creates a reflog entry, if a "reason" was provided).
UpdateRef moves the given ref to a new sha with a given reason (and creates a reflog entry, if a "reason" was provided).
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
AuthorDateRevListOrder gives the revisions such that no parents are shown before children, and otherwise in author date timestamp order.
DateRevListOrder gives the revisions such that no parents are shown before children, and otherwise in commit timestamp order.
DefaultRevListOrder is the zero-value for this type and yields the results as given by git-rev-list(1) without any `--<t>-order` argument given.
No description provided by the author
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
ScanAllMode will scan all history.
ScanLeftToRemoteMode will scan the difference between any included SHA1s and a remote tracking ref.
ScanRefsMode will scan between two refspecs.
StatusDelay is a valid response when a delay has occurred.
StatusError is a valid response when an error has occurred.
StatusSuccess is a valid response when a successful event has occurred.
TopoRevListOrder gives the revisions such that they appear in topological order.
# Variables
No description provided by the author
# Structs
AttributePath is a path entry in a gitattributes file which has the LFS filter.
No description provided by the author
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.
ObjectScanner is a scanner type that scans for Git objects reference-able in Git's object database by their unique OID.
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.
RevListScanner is a Scanner type that parses through results of the `git rev-list` command.
ScanRefsOptions is an "options" type that is used to configure a scan operation on the `*git.RevListScanner` instance when given to the function `NewRevListScanner()`.
# Type aliases
FilterProcessStatus is a constant type representing the various valid responses for `status=` in the Git filtering process protocol.
No description provided by the author
RevListOrder is a constant type that allows for variation in the ordering of revisions given by the *RevListScanner below.
ScanningMode is a constant type that allows for variation in the range of commits to scan when given to the `*git.RevListScanner` type.