gogit

package module
v0.0.0-...-53e8a17 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	Dir string
}

func (*Git) ActiveBranch

func (git *Git) ActiveBranch() (string, error)

func (*Git) Branches

func (git *Git) Branches() (branches []string, err error)

func (*Git) Checkout

func (git *Git) Checkout(branch string) error

func (*Git) Command

func (git *Git) Command(args ...string) (string, error)

func (*Git) DeleteBranch

func (git *Git) DeleteBranch(branch string) error

func (*Git) Export

func (git *Git) Export(destination string) error

func (*Git) Fetch

func (git *Git) Fetch(remote string, args ...string) error

func (*Git) Pull

func (git *Git) Pull(remote string) error

func (*Git) RemoteBranches

func (git *Git) RemoteBranches(remote string) (branches []string, err error)

func (*Git) RevisionLog

func (git *Git) RevisionLog(revision string) (string, error)

func (*Git) SimpleLog

func (git *Git) SimpleLog(path string, limit int) (logs []*Log, err error)

type Log

type Log struct {
	Revision string `json:"revision"`
	Message  string `json:"message"`
}

Jump to

Keyboard shortcuts

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