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

Function newRepository

repository.go:496–502  ·  view source on GitHub ↗
(s storage.Storer, worktree billy.Filesystem)

Source from the content-addressed store, hash-verified

494}
495
496func newRepository(s storage.Storer, worktree billy.Filesystem) *Repository {
497 return &Repository{
498 Storer: s,
499 wt: worktree,
500 r: make(map[string]*Remote),
501 }
502}
503
504func checkIfCleanupIsNeeded(path string) (cleanup bool, cleanParent bool, err error) {
505 fi, err := osfs.Default.Stat(path)

Callers 3

InitWithOptionsFunction · 0.85
OpenFunction · 0.85
TestPushFollowTagsMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestPushFollowTagsMethod · 0.68