utils

package
v0.0.0-...-3967fb6 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BRANCHES_FILE = "branches.json"
View Source
const CONFIG_DEFAULT_LOCATION = "/etc/gitawsm"
View Source
const CONFIG_FILE = "config.json"

Variables

This section is empty.

Functions

func GetWorkingDirectory

func GetWorkingDirectory() string

func GitCheckoutBranch

func GitCheckoutBranch(path string, branch string) error

func GitCreateBranchIfDoesNotExist

func GitCreateBranchIfDoesNotExist(path string, branch string) error

func GitCreateUpstreamIfDoesNotExist

func GitCreateUpstreamIfDoesNotExist(path string, branch string) error

func GitFetch

func GitFetch(path string)

func GitGetAllBranches

func GitGetAllBranches(path string) []string

func GitGetBranch

func GitGetBranch(path string) string

func GitIsCleanWorkingTree

func GitIsCleanWorkingTree(path string) bool

func GitIsValidBranchName

func GitIsValidBranchName(branch string) bool

func GitPull

func GitPull(path string, branch string) error

func GitPush

func GitPush(path string, branch string) error

func Matches

func Matches(str string, pattern string) bool

func Print

func Print(message string)

func ReadBranches

func ReadBranches() map[string][]string

func ReadConfig

func ReadConfig() map[string][]string

func WriteBranches

func WriteBranches(b map[string][]string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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