PlainOpen opens a git repository from the given path. It detects if the repository is bare or a normal one. If the path doesn't contain a valid repository ErrRepositoryNotExists is returned
(path string)
| 302 | // repository is bare or a normal one. If the path doesn't contain a valid |
| 303 | // repository ErrRepositoryNotExists is returned |
| 304 | func PlainOpen(path string) (*Repository, error) { |
| 305 | return PlainOpenWithOptions(path, &PlainOpenOptions{}) |
| 306 | } |
| 307 | |
| 308 | // PlainOpenWithOptions opens a git repository from the given path with specific |
| 309 | // options. See PlainOpen for more info. |
searching dependent graphs…