git

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitID

func CommitID(dir string) (string, error)

CommitID return the commit id of HEAD by running git rev-parse in the passed directory

func LsFiles

func LsFiles(dir, args string) (string, error)

LsFiles runs git ls-files in dir, passes args as argument and returns the output

func WorkTreeIsDirty

func WorkTreeIsDirty(dir string) (bool, error)

WorkTreeIsDirty returns true if the repository contains modified files, untracked files are considered, files in .gitignore are ignored

Types

This section is empty.

Jump to

Keyboard shortcuts

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