revparse

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2017 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Overview

git rev-parse [ --option ] <args>...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbbrevRef

func AbbrevRef(mode string) func(*types.Cmd)

--abbrev-ref[=(strict|loose)]

func AbsoluteGitDir

func AbsoluteGitDir(g *types.Cmd)

func After

func After(date string) func(*types.Cmd)

func All

func All(g *types.Cmd)

func Args

func Args(args ...string) func(*types.Cmd)

func Before

func Before(date string) func(*types.Cmd)

func Branches

func Branches(pattern string) func(*types.Cmd)

--branches[=pattern]

func Disambiguate

func Disambiguate(prefix string) func(*types.Cmd)

func Exclude

func Exclude(globPattern string) func(*types.Cmd)

func GitCommonDir

func GitCommonDir(g *types.Cmd)

func GitDir

func GitDir(g *types.Cmd)

func Glob

func Glob(pattern string) func(*types.Cmd)

func IsBareRepository

func IsBareRepository(g *types.Cmd)

func IsInsideGitDir

func IsInsideGitDir(g *types.Cmd)

func IsInsideWorkTree

func IsInsideWorkTree(g *types.Cmd)

func KeepDashdash

func KeepDashdash(g *types.Cmd)

func LocalEnvVars

func LocalEnvVars(g *types.Cmd)

func NoFlags

func NoFlags(g *types.Cmd)

func NoRevs

func NoRevs(g *types.Cmd)

func Parseopt

func Parseopt(g *types.Cmd)

Use git rev-parse in option parsing mode (see PARSEOPT section below). --parseopt

func Remotes

func Remotes(pattern string) func(*types.Cmd)

--remotes[=pattern]

func RevsOnly

func RevsOnly(g *types.Cmd)

func SharedIndexPath

func SharedIndexPath(g *types.Cmd)

func Short

func Short(number string) func(*types.Cmd)

--short, --short=number

func ShowCdup

func ShowCdup(g *types.Cmd)

func ShowPrefix

func ShowPrefix(g *types.Cmd)

func ShowSuperprojectWorkingTree

func ShowSuperprojectWorkingTree(g *types.Cmd)

func ShowToplevel

func ShowToplevel(g *types.Cmd)

func Since

func Since(date string) func(*types.Cmd)

func SqQuote

func SqQuote(g *types.Cmd)

Use git rev-parse in shell quoting mode (see SQ-QUOTE section below). In contrast to the --sq option below, this mode does only quoting. Nothing else is done to command input. --sq-quote

func StopAtNonOption

func StopAtNonOption(g *types.Cmd)

func StuckLong

func StuckLong(g *types.Cmd)

func SymbolicFullName

func SymbolicFullName(g *types.Cmd)

func Tags

func Tags(pattern string) func(*types.Cmd)

--tags[=pattern]

func Until

func Until(date string) func(*types.Cmd)

Types

This section is empty.

Jump to

Keyboard shortcuts

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