Documentation ¶
Overview ¶
Package git allows working with Git repositories
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { GetRootDir(dir string) (string, error) GetOriginURL(dir string) (string, bool, error) GetRef(dir string) string Clone(dir string, url string) error Checkout(dir string, ref string) error }
Repository represents a git source repository
func NewRepository ¶
func NewRepository() Repository
NewRepository creates a new Repository for the given directory
Click to show internal directories.
Click to hide internal directories.