Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository struct { Options Options // contains filtered or unexported fields }
func NewRepository ¶
func NewRepository(dir string) (*Repository, error)
NewRepository opens a git repository from the specified directory
func (*Repository) HeadCommitSHA ¶
func (r *Repository) HeadCommitSHA() (string, error)
Return the SHA of the commita at HEAD
func (*Repository) SourceURL ¶
func (r *Repository) SourceURL() (string, error)
SourceURL returns the repository URL
Click to show internal directories.
Click to hide internal directories.