githandler

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add() error

Add ...

func BranchDelete added in v1.0.0

func BranchDelete(name, remote string, deleteRemote, force bool) (string, error)

BranchDelete ...

func BranchDelivered added in v1.0.0

func BranchDelivered(remote string) (localBranches []string, remoteBranches []string)

BranchDelivered ...

func BranchReady added in v1.0.0

func BranchReady(remote string, prefix string) (remoteBranches []string)

BranchReady ...

func BranchRename

func BranchRename(name string) error

BranchRename ...

func BranchTime added in v1.0.0

func BranchTime(name string) (int, error)

BranchTime ...

func CheckOut

func CheckOut(branch string) error

CheckOut ...

func CheckoutNewBranchFromRemote

func CheckoutNewBranchFromRemote(branch, defaultBranch string) error

CheckoutNewBranchFromRemote ...

func Commit

func Commit(message string) (string, error)

Commit ...

func ConfigBranchRemote

func ConfigBranchRemote(branch string) string

ConfigBranchRemote ...

func ConfigGet

func ConfigGet(key, group string) string

ConfigGet ...

func ConfigSet

func ConfigSet(key, value, group string) error

ConfigSet ...

func Fetch

func Fetch() error

Fetch ...

func FetchPrune added in v1.0.0

func FetchPrune() error

FetchPrune ...

func FormatPatch added in v1.1.5

func FormatPatch(remoteBranch string) (string, error)

FormatPatch ... dry runs patch to see if we can auto merge

func Merge

func Merge(branch string) error

Merge ...

func Pull

func Pull() (string, error)

Pull ...

func Push

func Push() (string, error)

Push ...

func PushRename

func PushRename(branch, defaultBranch string) (string, error)

PushRename ...

func Status

func Status() error

Status ... git status

func StatusPorcelain added in v1.1.5

func StatusPorcelain() (string, error)

StatusPorcelain ... generates behind and ahead status

Types

type BranchInfo

type BranchInfo struct {
	Current string
	List    []string
}

BranchInfo ...

func Branch

func Branch() (*BranchInfo, error)

Branch ...

type RemoteInfo

type RemoteInfo struct {
	Organisation string
	Repository   string
}

RemoteInfo ...

func Remote

func Remote() (*RemoteInfo, error)

Remote ... Must have either origin or upstream THIS NEEDS TO BE REVISITED

Jump to

Keyboard shortcuts

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