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) PushMany(req *gateway.PushManyRequest) error
- func (g *Gateway) Rebase(req *gateway.RebaseRequest) error
- func (g *Gateway) RemoteURL(name string) (string, error)
- func (g *Gateway) ResetBranch(branch, head 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 a branch with the given name and head but does not check it out.
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.
func (*Gateway) PushMany ¶ added in v0.2.2
func (g *Gateway) PushMany(req *gateway.PushManyRequest) error
PushMany pushes multiple refs to a remote
func (*Gateway) Rebase ¶ added in v0.2.1
func (g *Gateway) Rebase(req *gateway.RebaseRequest) error
Rebase a branch.
func (*Gateway) ResetBranch ¶ added in v0.3.0
ResetBranch resets the given branch to the given head.
Click to show internal directories.
Click to hide internal directories.