Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoBranch = errors.New("Git head is not a branch")
)
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository represents the git repository.
func NewRepository ¶
func NewRepository(config config.Git) (Repository, error)
NewRepository creates a new repository.
func NewRepositoryFromBranch ¶
func NewRepositoryFromBranch(branch string) Repository
NewRepositoryFromBranch creates a new repository from branch name.
Click to show internal directories.
Click to hide internal directories.