githandler

package
v3.8.20+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: MIT Imports: 4 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BranchTime added in v1.0.0

func BranchTime(name string) (int, error)

Deprecated BranchTime ...

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 ... info for branches

func AsList

func AsList(branchOutput string) *BranchInfo

AsList ... List all the branches

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) RevParse

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

RevParse ... Executes local git rev-parse 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 Extracts the Organization and repository name from a remote URL returned from git ls-remote this is only meant to work for github because they have a multi-tenant system where organization and repository is used to query their API

Jump to

Keyboard shortcuts

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