Documentation ¶
Index ¶
- type Client
- func (c *Client) AncestorTag(include, exclude string) string
- func (c *Client) Clean(output string, err error) (string, error)
- func (c *Client) CurrentBranch() (string, error)
- func (c *Client) IsRepo() bool
- func (c *Client) LatestTag() string
- func (c *Client) Run(args ...string) (string, error)
- func (c *Client) SourceBranch(commitHash string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { GitCmd func(env map[string]string, args ...string) (string, error) // contains filtered or unexported fields }
Client is an empty struct to run git.
func (*Client) AncestorTag ¶
AncestorTag returns the previous tag that matches specific pattern if found.
func (*Client) CurrentBranch ¶
CurrentBranch returns the current branch checked out.
Click to show internal directories.
Click to hide internal directories.