git

package module
v0.0.0-...-16eec09 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2015 License: MIT Imports: 7 Imported by: 1

README

gitlib

Git library for Go

Denv uses this to RPC git

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NOF = []string{}

Functions

func IsRepository

func IsRepository(path string) bool

func Operation

func Operation(command string, flags []string, args ...string) (string, error)

Types

type Repository

type Repository struct {
	Path string
}

func NewRepository

func NewRepository(path string) (repo *Repository, err error)

func (*Repository) Add

func (repo *Repository) Add(paths ...string) (err error)

func (*Repository) Checkout

func (repo *Repository) Checkout(args ...string) (err error)

func (*Repository) Commit

func (repo *Repository) Commit(msg string) (err error)

func (*Repository) Exclude

func (repo *Repository) Exclude(patterns ...string) (err error)

Append these patterns to .git/info/exclude

func (*Repository) Fetch

func (repo *Repository) Fetch(remote string) (err error)

func (*Repository) Init

func (repo *Repository) Init() (err error)

func (*Repository) Op

func (repo *Repository) Op(cmd string, flags []string, args ...string) (out string, err error)

func (*Repository) Pull

func (repo *Repository) Pull(remote string, branch string) (err error)

func (*Repository) Push

func (repo *Repository) Push(remote string, branch string) (err error)

func (*Repository) SetRemote

func (repo *Repository) SetRemote(remote string, url string) (err error)

Jump to

Keyboard shortcuts

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