Documentation
¶
Index ¶
- type Gateway
- func (g *Gateway) ApplyPatches(patches string) error
- func (g *Gateway) Checkout(name string) error
- func (g *Gateway) CreateBranch(name, head string) error
- func (g *Gateway) CreateBranchAndSwitch(name, head string) error
- func (g *Gateway) CurrentBranch() (string, error)
- func (g *Gateway) DeleteBranch(name string) error
- func (g *Gateway) DeleteRemoteTrackingBranch(remote, name string) error
- func (g *Gateway) DoesBranchExist(name string) bool
- func (g *Gateway) Fetch(req *gateway.FetchRequest) error
- func (g *Gateway) Pull(remote, name string) error
- func (g *Gateway) Push(req *gateway.PushRequest) error
- func (g *Gateway) RemoteURL(name string) (string, error)
- func (g *Gateway) SHA1(ref string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
Gateway is a git gateway.
func NewGateway ¶
NewGateway builds a new Git gateway.
func (*Gateway) ApplyPatches ¶
ApplyPatches applies the given patch.
func (*Gateway) CreateBranch ¶
CreateBranch creates
func (*Gateway) CreateBranchAndSwitch ¶
CreateBranchAndSwitch checks out a new branch with the given name and head.
func (*Gateway) CurrentBranch ¶
CurrentBranch determines the current branch name.
func (*Gateway) DeleteBranch ¶
DeleteBranch deletes the given branch.
func (*Gateway) DeleteRemoteTrackingBranch ¶
DeleteRemoteTrackingBranch deletes the remote tracking branch with the given name.
func (*Gateway) DoesBranchExist ¶
DoesBranchExist checks if this branch exists locally.
Click to show internal directories.
Click to hide internal directories.