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

Function CurrentRef

git/git.go:379–381  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

377}
378
379func CurrentRef() (*Ref, error) {
380 return ResolveRef("HEAD")
381}
382
383func (c *Configuration) CurrentRemoteRef() (*Ref, error) {
384 remoteref, err := c.RemoteRefNameForCurrentBranch()

Callers 15

lsFilesCommandFunction · 0.92
checkoutCommandFunction · 0.92
currentRefToMigrateFunction · 0.92
migrateImportCommandFunction · 0.92
fsckCommandFunction · 0.92
fetchCommandFunction · 0.92
statusCommandFunction · 0.92
cloneCommandFunction · 0.92
pullFunction · 0.92
CurrentRefMethod · 0.92

Calls 1

ResolveRefFunction · 0.85

Tested by 2