provider

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2021 License: MIT Imports: 4 Imported by: 0

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

func FallbackTo(remote *string) interface {
	Apply(*git.Repository, error) *git.Repository
}

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 impossible it raises a panic.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL