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

Function ResolveRefs

git/git.go:366–377  ·  view source on GitHub ↗
(refnames []string)

Source from the content-addressed store, hash-verified

364}
365
366func ResolveRefs(refnames []string) ([]*Ref, error) {
367 refs := make([]*Ref, len(refnames))
368 for i, name := range refnames {
369 ref, err := ResolveRef(name)
370 if err != nil {
371 return refs, err
372 }
373
374 refs[i] = ref
375 }
376 return refs, nil
377}
378
379func CurrentRef() (*Ref, error) {
380 return ResolveRef("HEAD")

Callers 2

fsckCommandFunction · 0.92
fetchCommandFunction · 0.92

Calls 1

ResolveRefFunction · 0.85

Tested by

no test coverage detected