Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) AddRemote(local string, name string, url *url.URL) error
- func (c *Client) Clone(local string, remote *url.URL, shallow bool) error
- func (c *Client) Fetch(local string) error
- func (c *Client) GetCurrentBranch(local string) (string, error)
- func (c *Client) GetRemote(local string, name string) (*url.URL, error)
- func (c *Client) GetRemotes(local string) (map[string]*url.URL, error)
- func (c *Client) GetStatusSummary(path string, err io.Writer) (StatusSummary, error)
- func (c *Client) Init(directory string, bare bool, template string, separateGitDir string, ...) error
- func (c *Client) RemoveRemote(local string, name string) error
- func (c *Client) RenameRemote(local string, oldName, newName string) error
- func (c *Client) SetUpstreamTo(local string, upstream string) error
- func (c *Client) Status(path string, out, err io.Writer) error
- func (c *Client) Update(local string) error
- type StatusSummary
Constants ¶
View Source
const ( StatusSummaryClear = StatusSummary(0) StatusSummaryModified = StatusSummary(1) StatusSummaryUntracked = StatusSummary(2) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.4.0
type Client struct { }
func (*Client) GetCurrentBranch ¶ added in v1.5.0
func (*Client) GetRemotes ¶ added in v1.4.0
func (*Client) GetStatusSummary ¶ added in v1.7.0
func (*Client) RemoveRemote ¶ added in v1.4.0
func (*Client) RenameRemote ¶ added in v1.4.0
func (*Client) SetUpstreamTo ¶ added in v1.5.0
type StatusSummary ¶ added in v1.7.0
type StatusSummary int
func (StatusSummary) String ¶ added in v1.7.0
func (c StatusSummary) String() string
Click to show internal directories.
Click to hide internal directories.