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