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

Function NewWithOptions

storage/filesystem/dotgit/dotgit.go:118–123  ·  view source on GitHub ↗

NewWithOptions sets non default configuration options. See New for complete help.

(fs billy.Filesystem, o Options)

Source from the content-addressed store, hash-verified

116// NewWithOptions sets non default configuration options.
117// See New for complete help.
118func NewWithOptions(fs billy.Filesystem, o Options) *DotGit {
119 return &DotGit{
120 options: o,
121 fs: fs,
122 }
123}
124
125// Initialize creates all the folder scaffolding.
126func (d *DotGit) Initialize() error {

Callers 8

NewStorageWithOptionsFunction · 0.92
NewFunction · 0.85
TestObjectsExclusiveMethod · 0.85
testAlternatesFunction · 0.85

Calls

no outgoing calls