Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Default ¶
func Default() (*git.Repository, error)
Default opens a Git repository from the working directory. It walks parent directories until found a .git directory. It returns git.ErrRepositoryNotExists if the working directory doesn't contain a valid repository.
func FallbackTo ¶
FallbackTo returns a fallback mechanism to handle case when git.ErrRepositoryNotExists is occurred. If it happens it returns a stub of git.Repository. If it's impossible it raises a panic.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.