package
1.5.6
Repository: https://github.com/x-oss-byte/git-lfs.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CleanPaths splits the given `paths` argument by the delimiter argument, and then "cleans" that path according to the path.Clean function (see https://golang.org/pkg/path#Clean).
No description provided by the author
CopyWithCallback copies reader to writer while performing a progress callback.
DirExists determines if a dir (NOT file) exists.
FastWalkGitRepo is a more optimal implementation of filepath.Walk for a Git repo.
FileExists determines if a file (NOT dir) exists.
FileExistsOfSize determines if a file exists and is of a specific size.
FileOrDirExists determines if a file/dir exists, returns IsDir() results too.
MaxInt returns the greater of two `int`s, "a", or "b".
MinInt returns the smaller of two `int`s, "a", or "b".
No description provided by the author
No description provided by the author
Get a new Hash instance of the type used to hash LFS content.
NewReadSeekCloserWrapper wraps an io.ReadSeeker and implements a no-op Close() function to make it an io.ReadCloser.
No description provided by the author
Creates and returns a reference to an empty set.
Creates and returns a reference to a set from an existing slice.
Creates and returns a reference to an empty set with a capacity.
RenameFileCopyPermissions moves srcfile to destfile, replacing destfile if necessary and also copying the permissions of destfile if it already exists.
ResolveSymlinks ensures that if the path supplied is a symlink, it is resolved to the actual concrete path.
Spool spools the contents from 'from' to 'to' by buffering the entire contents of 'from' into a temprorary buffer.
VerifyFileHash reads a file and verifies whether the SHA is correct Returns an error if there is a problem.

# Structs

HashingReader wraps a reader and calculates the hash of the data as it is read.
RetriableReader wraps a error response of reader as RetriableError().

# Type aliases

FastWalkCallback is the signature for the callback given to FastWalkGitRepo().
The primary type that represents a set.