git

package
v0.0.0-...-30b4a77 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2016 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package git implements git wrappers.

Index

Constants

View Source
const Date = "Mon Jan _2 15:04:05 2006 -0700"

Date defines the layout of git dates useful for time.Parse.

Variables

This section is empty.

Functions

func Checkout

func Checkout(dir, commit string, outfp, statfp io.Writer) error

Checkout executes a `git checkout commit` in directory dir.

func GetHead

func GetHead(dir string, statfp io.Writer) (commit, date string, err error)

GetHead returns the commit and date of the git HEAD in the directory dir. If dir is nil, the current working directory of the calling binary is used.

func Pull

func Pull(dir string, outfp, statfp io.Writer) error

Pull executes a `git pull` in directory dir.

func Status

func Status(dir string, statfp io.Writer) error

Status executes a `git status --porcelain` in directory dir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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