git

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_EDITOR_NAME = "vim" // FIXME
View Source
const EDITOR_KEY = "core.editor" // FIXME

Variables

This section is empty.

Functions

func GetConfig added in v0.0.2

func GetConfig(repoPath string) (*config.Config, error)

func GetCurrentBranch added in v0.0.2

func GetCurrentBranch(path string) (string, error)

func GetEditorName added in v0.0.2

func GetEditorName() (string, error)

func SetRemote added in v0.0.2

func SetRemote(path, remoteName, remoteUrl string) (*git.Remote, error)

Types

type RawRemote added in v0.0.2

type RawRemote interface {
	Config() *RawRemoteConfig
}

type RawRemoteConfig added in v0.0.2

type RawRemoteConfig interface {
}

type Remote

type Remote struct {
	URL         string
	ServiceHost string
	Owner       string
	RepoName    string
}

func GetDefaultRemote

func GetDefaultRemote(path string) (*Remote, error)

func NewRemote

func NewRemote(remoteUrl string) (*Remote, error)

Jump to

Keyboard shortcuts

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