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)
| 110 | // be the absolute path of a git repository directory (e.g. |
| 111 | // "/foo/bar/.git"). |
| 112 | func 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. |