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

Function newRepository

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

Source from the content-addressed store, hash-verified

501}
502
503func newRepository(s storage.Storer, worktree billy.Filesystem) *Repository {
504 return &Repository{
505 Storer: s,
506 wt: worktree,
507 r: make(map[string]*Remote),
508 }
509}
510
511func checkIfCleanupIsNeeded(path string) (cleanup bool, cleanParent bool, err error) {
512 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…