MCPcopy
hub / github.com/go-git/go-git / Head

Method Head

repository.go:1505–1507  ·  view source on GitHub ↗

Head returns the reference where HEAD is pointing to.

()

Source from the content-addressed store, hash-verified

1503
1504// Head returns the reference where HEAD is pointing to.
1505func (r *Repository) Head() (*plumbing.Reference, error) {
1506 return storer.ResolveReference(r.Storer, plumbing.HEAD)
1507}
1508
1509// Reference returns the reference for a given reference name. If resolved is
1510// true, any symbolic reference will be resolved.

Callers 15

cloneMethod · 0.95
logMethod · 0.95
MergeMethod · 0.95
TestInitMethod · 0.80
TestInitWithOptionsMethod · 0.80
TestMergeFFMethod · 0.80
TestMergeFF_InvalidMethod · 0.80
TestFetchMethod · 0.80
TestCloneDeepMethod · 0.80
TestCloneConfigMethod · 0.80

Calls 1

ResolveReferenceFunction · 0.92

Tested by 15

TestInitMethod · 0.64
TestInitWithOptionsMethod · 0.64
TestMergeFFMethod · 0.64
TestMergeFF_InvalidMethod · 0.64
TestFetchMethod · 0.64
TestCloneDeepMethod · 0.64
TestCloneConfigMethod · 0.64
TestCloneSingleBranchMethod · 0.64