Documentation
¶
Index ¶
- Constants
- type Context
- func (c *Context) AbbrevRef(targetPath string) (string, error)
- func (c *Context) Branch(targetPath string) (string, error)
- func (c *Context) Checkout(targetPath, target string) error
- func (c *Context) Clone(targetPath string, url string) error
- func (c *Context) CommitTime(targetPath string) (time.Time, error)
- func (c *Context) IsGit(targetPath string) bool
- func (c *Context) MostRecentTag(targetPath string) (string, error)
- func (c *Context) Pull(targetPath string) error
- func (c *Context) RemoteOriginUrl(targetPath string) (string, error)
- func (c *Context) SHA(targetPath string) (string, error)
- func (c *Context) Status(path string) (Status, error)
- func (c *Context) Tags(targetPath string) ([]string, error)
- func (c *Context) TopLevel(path string) (string, error)
- type Flag
- type Status
Constants ¶
View Source
const ( Unknown Status Clean Uncommitted NoUpstream NotMaster MustExit Flag MustPanic Warn Verbose LocalOnly // i.e. not being in remote is not considered an error )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) RemoteOriginUrl ¶
Click to show internal directories.
Click to hide internal directories.