Documentation ¶
Index ¶
- func CommitsBetween(repoPath string, cfg Range) ([]string, error)
- func FirstCommit(repoPath string) (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(_ Range) ([]string, error)
- func (m MockInterface) FirstCommit() (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 ¶ added in v0.5.0
func FirstCommit ¶ added in v0.8.0
func HeadCommit ¶
func HeadTagOrCommit ¶
func IsRepository ¶
Types ¶
type Interface ¶ added in v0.4.2
type MockInterface ¶ added in v0.4.2
type MockInterface struct { MockHeadOrTagCommit string MockHeadTag string MockTags []string MockRemoteURL string MockSearchTag string MockCommitsBetween []string MockFirstCommit string }
func (MockInterface) CommitsBetween ¶ added in v0.5.0
func (m MockInterface) CommitsBetween(_ Range) ([]string, error)
func (MockInterface) FirstCommit ¶ added in v0.8.0
func (m MockInterface) FirstCommit() (string, error)
func (MockInterface) HeadTag ¶ added in v0.4.2
func (m MockInterface) HeadTag() (string, error)
func (MockInterface) HeadTagOrCommit ¶ added in v0.4.2
func (m MockInterface) HeadTagOrCommit() (string, error)
func (MockInterface) RemoteURL ¶ added in v0.4.2
func (m MockInterface) RemoteURL() (string, error)
func (MockInterface) SearchForTag ¶ added in v0.4.2
func (m MockInterface) SearchForTag(_ string) (*Tag, error)
func (MockInterface) TagsFromLocal ¶ added in v0.4.2
func (m MockInterface) TagsFromLocal() ([]Tag, error)
Click to show internal directories.
Click to hide internal directories.