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

Function New

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

110// be the absolute path of a git repository directory (e.g.
111// "/foo/bar/.git").
112func New(fs billy.Filesystem) *DotGit {
113 return NewWithOptions(fs, Options{})
114}
115
116// NewWithOptions sets non default configuration options.
117// See New for complete help.

Calls 1

NewWithOptionsFunction · 0.85