MCPcopy Create free account
hub / github.com/go-git/go-git / References

Method References

repository.go:1513–1515  ·  view source on GitHub ↗

References returns an unsorted ReferenceIter for all references.

()

Source from the content-addressed store, hash-verified

1511
1512// References returns an unsorted ReferenceIter for all references.
1513func (r *Repository) References() (storer.ReferenceIter, error) {
1514 return r.Storer.IterReferences()
1515}
1516
1517// Worktree returns a worktree based on the given fs, if nil the default
1518// worktree will be used.

Callers 6

TestCloneMirrorMethod · 0.80
TestCloneWithTagsMethod · 0.80
TestTagObjectsMethod · 0.80
TestRefsMethod · 0.80
mainFunction · 0.80

Calls 1

IterReferencesMethod · 0.65

Tested by 5

TestCloneMirrorMethod · 0.64
TestCloneWithTagsMethod · 0.64
TestTagObjectsMethod · 0.64
TestRefsMethod · 0.64