git

package
v0.0.0-...-6c0299b Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(files ...string) error

Add adds files to the git index.

func ChangedFiles

func ChangedFiles(previousSHA, currentSHA string) ([]string, error)

ChangedFiles returns the files that changed between the given commits.

func Commit

func Commit(message string) error

Commit creates a signed commit with the given message.

func Info

func Info() (commit, branch, tag string, err error)

Info returns Git info.

func StagedFiles

func StagedFiles() ([]string, error)

StagedFiles returns the files that are staged by git.

func Tag

func Tag(tag, message string) error

Tag creates an signed, annotated tag with the given message.

func UnstagedFiles

func UnstagedFiles() ([]string, error)

UnstagedFiles returns the files that are changed, but not staged by git.

Types

This section is empty.

Jump to

Keyboard shortcuts

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