MCPcopy Index your code
hub / github.com/go-git/go-git / NewWithOptions

Function NewWithOptions

storage/filesystem/dotgit/dotgit.go:125–130  ·  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

123// NewWithOptions sets non default configuration options.
124// See New for complete help.
125func NewWithOptions(fs billy.Filesystem, o Options) *DotGit {
126 return &DotGit{
127 options: o,
128 fs: fs,
129 }
130}
131
132// Initialize creates all the folder scaffolding.
133func (d *DotGit) Initialize() error {

Callers 8

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

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…