MCPcopy Index your code
hub / github.com/git-bug/git-bug / ResolveRef

Method ResolveRef

repository/repo.go:173–173  ·  view source on GitHub ↗

ResolveRef returns the hash of the target commit of the given ref Returns ErrNotFound if not found.

(ref string)

Source from the content-addressed store, hash-verified

171 // ResolveRef returns the hash of the target commit of the given ref
172 // Returns ErrNotFound if not found.
173 ResolveRef(ref string) (Hash, error)
174
175 // UpdateRef will create or update a Git reference
176 UpdateRef(ref string, hash Hash) error

Callers 7

nonNativeListCommitsFunction · 0.65
RepoDataTestFunction · 0.65
assertEqualRefsFunction · 0.65
assertNotEqualRefsFunction · 0.65
readFunction · 0.65
readClockNoCheckFunction · 0.65
mergeFunction · 0.65

Implementers 2

mockRepoDatarepository/mock_repo.go
GoGitReporepository/gogit.go

Calls

no outgoing calls

Tested by 2

assertEqualRefsFunction · 0.52
assertNotEqualRefsFunction · 0.52