gitutil

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RelativePath

func RelativePath(pathFromRoot string) (relativePath string, err error)

RelativePath returns the relative path from the current working directory to the file specified by the relative path from the repository root.

This is useful for some other Git commands, particularly git status.

func RepositoryRootAbsolutePath

func RepositoryRootAbsolutePath() (path string, err error)

func Run

func Run(args ...string) (stdout *bytes.Buffer, err error)

func RunCommand

func RunCommand(command string, args ...string) (stdout *bytes.Buffer, err error)

func ShowFileByBranch

func ShowFileByBranch(file, branch string) (content *bytes.Buffer, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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