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

Function New

storage/filesystem/dotgit/dotgit.go:119–121  ·  view source on GitHub ↗

New returns a DotGit value ready to be used. The path argument must be the absolute path of a git repository directory (e.g. "/foo/bar/.git").

(fs billy.Filesystem)

Source from the content-addressed store, hash-verified

117// be the absolute path of a git repository directory (e.g.
118// "/foo/bar/.git").
119func New(fs billy.Filesystem) *DotGit {
120 return NewWithOptions(fs, Options{})
121}
122
123// NewWithOptions sets non default configuration options.
124// See New for complete help.

Calls 1

NewWithOptionsFunction · 0.85