Documentation ¶
Index ¶
- func CommitsBetween(repoPath string, cfg Range) ([]string, error)
- func HeadCommit(repoPath string) (string, error)
- func HeadTag(repoPath string) (string, error)
- func HeadTagOrCommit(repoPath string) (string, error)
- func IsRepository(path string) bool
- func RemoteURL(p string) (string, error)
- type Interface
- type MockInterface
- func (m MockInterface) CommitsBetween(r Range) ([]string, error)
- func (m MockInterface) HeadTag() (string, error)
- func (m MockInterface) HeadTagOrCommit() (string, error)
- func (m MockInterface) RemoteURL() (string, error)
- func (m MockInterface) SearchForTag(_ string) (*Tag, error)
- func (m MockInterface) TagsFromLocal() ([]Tag, error)
- type Range
- type Reference
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitsBetween ¶
TODO: put under test
func HeadCommit ¶
func HeadTagOrCommit ¶
func IsRepository ¶
Types ¶
type Interface ¶
type MockInterface ¶
type MockInterface struct { MockHeadOrTagCommit string MockHeadTag string MockTags []string MockRemoteURL string MockSearchTag string MockCommitsBetween []string }
func (MockInterface) CommitsBetween ¶
func (m MockInterface) CommitsBetween(r Range) ([]string, error)
func (MockInterface) HeadTag ¶
func (m MockInterface) HeadTag() (string, error)
func (MockInterface) HeadTagOrCommit ¶
func (m MockInterface) HeadTagOrCommit() (string, error)
func (MockInterface) RemoteURL ¶
func (m MockInterface) RemoteURL() (string, error)
func (MockInterface) SearchForTag ¶
func (m MockInterface) SearchForTag(_ string) (*Tag, error)
func (MockInterface) TagsFromLocal ¶
func (m MockInterface) TagsFromLocal() ([]Tag, error)
Click to show internal directories.
Click to hide internal directories.