MCPcopy
hub / github.com/git-lfs/git-lfs / fetchRef

Function fetchRef

commands/command_fetch.go:204–210  ·  view source on GitHub ↗

Fetch all binaries for a given ref (that we don't have already)

(ref string, filter *filepathfilter.Filter, watcher *fetchWatcher)

Source from the content-addressed store, hash-verified

202
203// Fetch all binaries for a given ref (that we don't have already)
204func fetchRef(ref string, filter *filepathfilter.Filter, watcher *fetchWatcher) bool {
205 pointers, err := pointersToFetchForRef(ref, filter)
206 if err != nil {
207 Panic(err, tr.Tr.Get("Could not scan for Git LFS files"))
208 }
209 return fetch(pointers, watcher)
210}
211
212func pointersToFetchForRefs(refs []string) ([]*lfs.WrappedPointer, error) {
213 // This could be a long process so use the chan version & report progress

Callers 3

fetchCommandFunction · 0.85
fetchRecentFunction · 0.85
cloneCommandFunction · 0.85

Calls 4

pointersToFetchForRefFunction · 0.85
PanicFunction · 0.85
fetchFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected