githandler

package
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BranchRename

func BranchRename(name string) error

DEPRECETED SECTION - USE GIT BranchRename ...

func BranchTime added in v1.0.0

func BranchTime(name string) (int, error)

BranchTime ...

func ConfigBranchRemote

func ConfigBranchRemote(branch string) string

ConfigBranchRemote ... use setting.Project setting to get remote in stead Deprecated

func Delivered

func Delivered(info *BranchInfo, remote string) (localBranches []string, remoteBranches []string)

Delivered ...

func Ready

func Ready(info *BranchInfo, remote string, prefix string) (remoteBranches []string)

Ready ...

Types

type BranchInfo

type BranchInfo struct {
	Current string
	List    []string
}

BranchInfo ...

func AsList

func AsList(branchOutput string) *BranchInfo

AsList ...

type Git

type Git struct {
	Run executor.GitCommandRunner
}

Git ... Git object for execution operations on the local git installation

func (*Git) Add

func (os *Git) Add(argv ...string) (string, error)

Add ... Executes local git add with params

func (*Git) Branch

func (os *Git) Branch(argv ...string) (string, error)

Branch ... Executes local git branch with params

func (*Git) CheckOut

func (os *Git) CheckOut(argv ...string) (string, error)

CheckOut ... Executes local git checkout with params

func (*Git) Commit

func (os *Git) Commit(argv ...string) (string, error)

Commit ... Executes local git commit with params

func (*Git) Config

func (os *Git) Config(argv ...string) (string, error)

Config ... Executes local git config with params

func (*Git) Fetch

func (os *Git) Fetch(argv ...string) (string, error)

Fetch ... Executes local git fetch with params

func (*Git) LSRemote

func (os *Git) LSRemote(argv ...string) (string, error)

LSRemote ... Executes local git ls-remote with params

func (*Git) Merge

func (os *Git) Merge(argv ...string) (string, error)

Merge ... Executes local git merge with params

func (*Git) Pull

func (os *Git) Pull(argv ...string) (string, error)

Pull ... Executes local git pull with params

func (*Git) Push

func (os *Git) Push(argv ...string) (string, error)

Push ... Executes local git push with params

func (*Git) Status

func (os *Git) Status(argv ...string) (string, error)

Status ... Executes local git status with params

type RemoteInfo

type RemoteInfo struct {
	Organisation string
	Repository   string
}

RemoteInfo ...

func OrgAndRepo

func OrgAndRepo(url string) *RemoteInfo

OrgAndRepo ... Expects input from LSRemote

func Remote

func Remote() (*RemoteInfo, error)

-------------------------------- DEPRECATED SECTION --------------------------------------------------- Remote Deprecated

Jump to

Keyboard shortcuts

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