git

package
v0.0.0-...-2260ff3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package git implements go-repo-utils interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(path string, file string) error

Add given file to git on path

func Commit

func Commit(path string, message string, files []string) error

Commit given files with message on path

func CreateTag

func CreateTag(path string, tag string, message string) (bool, string, error)

CreateTag Create given tag on path with the provided message

func GetFirstRevision

func GetFirstRevision(path string) (string, error)

GetFirstRevision returns the first revision of the repostiory

func GetRevisionTag

func GetRevisionTag(path string, tag string) (string, error)

GetRevisionTag get the revision of a tag

func IsClean

func IsClean(path string) (bool, error)

IsClean Check uncommited files with git status --porcelain --untracked-files=no

func IsIt

func IsIt(path string) bool

IsIt Test if given path is managed by git with git info

func List

func List(path string) ([]string, error)

List tags on given path

func ListCommitsBetween

func ListCommitsBetween(path string, since string, to string) ([]commit.Commit, error)

ListCommitsBetween List commits between two points

func ParseGitLog

func ParseGitLog(logs string) []commit.Commit

ParseGitLog parses git loh output to a list of commits.

Types

This section is empty.

Jump to

Keyboard shortcuts

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