Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
379
func
CurrentRef() (*Ref, error) {
380
return
ResolveRef(
"HEAD"
)
381
}
382
383
func
(c *Configuration) CurrentRemoteRef() (*Ref, error) {
384
remoteref, err := c.RemoteRefNameForCurrentBranch()
Callers
15
lsFilesCommand
Function · 0.92
checkoutCommand
Function · 0.92
currentRefToMigrate
Function · 0.92
pruneTaskGetRetainedCurrentAndRecentRefs
Function · 0.92
pruneTaskGetRetainedWorktree
Function · 0.92
migrateImportCommand
Function · 0.92
fsckCommand
Function · 0.92
fetchCommand
Function · 0.92
statusCommand
Function · 0.92
cloneCommand
Function · 0.92
pull
Function · 0.92
CurrentRef
Method · 0.92
Calls
1
ResolveRef
Function · 0.85
Tested by
2
TestCurrentRefAndCurrentRemoteRef
Function · 0.68
TestResolveEmptyCurrentRef
Function · 0.68