Documentation
¶
Index ¶
- type FakeRepo
- func (f *FakeRepo) CommitHashForHead(short bool) (string, error)
- func (f *FakeRepo) IsDev(string) (bool, error)
- func (f *FakeRepo) IsWIP(path string) (bool, error)
- func (f *FakeRepo) SemVerTagForHead(ignoreParserErrors bool) (*semver.Version, error)
- func (f *FakeRepo) TagsForHead() ([]string, error)
- func (f *FakeRepo) TreeHashForHead(path string) (string, error)
- type Git
- type GitRepo
- func (g *GitRepo) CommitHashForHead(short bool) (string, error)
- func (g *GitRepo) IsDev(baseBranch string) (bool, error)
- func (g *GitRepo) IsWIP(path string) (bool, error)
- func (g *GitRepo) SemVerTagForHead(ignoreParserErrors bool) (*semver.Version, error)
- func (g *GitRepo) TagsForHead() ([]string, error)
- func (g *GitRepo) TreeHashForHead(path string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeRepo ¶
type FakeRepo struct { TreeHashForHeadRoot string TreeHashForHeadVal map[string]string CommitHashForHeadVal string TagsForHeadVal []string IsWIPVal map[string]bool IsWIPRoot bool IsDevVal bool }
func (*FakeRepo) CommitHashForHead ¶
func (*FakeRepo) SemVerTagForHead ¶
func (*FakeRepo) TagsForHead ¶
type GitRepo ¶
type GitRepo struct { TopLevel string // actual path of the repo as seen by git // contains filtered or unexported fields }
func (*GitRepo) IsWIP ¶
IsWIP check if any checked-in files had been modified, but it ignores files that new files that had not been checked in
func (*GitRepo) SemVerTagForHead ¶
func (*GitRepo) TagsForHead ¶
Click to show internal directories.
Click to hide internal directories.