git

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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) AddRemote added in v1.4.0

func (c *Client) AddRemote(local string, name string, url *url.URL) error

func (*Client) Clone added in v1.4.0

func (c *Client) Clone(local string, remote *url.URL, shallow bool) error

func (*Client) Fetch added in v1.5.0

func (c *Client) Fetch(local string) error

func (*Client) GetCurrentBranch added in v1.5.0

func (c *Client) GetCurrentBranch(local string) (string, error)

func (*Client) GetRemote added in v1.4.0

func (c *Client) GetRemote(local string, name string) (*url.URL, error)

func (*Client) GetRemotes added in v1.4.0

func (c *Client) GetRemotes(local string) (map[string]*url.URL, error)

func (*Client) GetStatusSummary added in v1.7.0

func (c *Client) GetStatusSummary(path string, err io.Writer) (StatusSummary, error)

func (*Client) Init added in v1.4.0

func (c *Client) Init(
	directory string,
	bare bool,
	template string,
	separateGitDir string,
	shared string,
) error

func (*Client) RemoveRemote added in v1.4.0

func (c *Client) RemoveRemote(local string, name string) error

func (*Client) RenameRemote added in v1.4.0

func (c *Client) RenameRemote(local string, oldName, newName string) error

func (*Client) SetUpstreamTo added in v1.5.0

func (c *Client) SetUpstreamTo(local string, upstream string) error

func (*Client) Status added in v1.7.0

func (c *Client) Status(path string, out, err io.Writer) error

func (*Client) Update added in v1.4.0

func (c *Client) Update(local string) error

type StatusSummary added in v1.7.0

type StatusSummary int

func (StatusSummary) String added in v1.7.0

func (c StatusSummary) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL