git

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package git provides constants for git binary invocation.

Index

Constants

View Source
const (
	Log      = "log"
	RevParse = "rev-parse"
)

Git subcommands.

View Source
const (
	FlagNoCommitID = "--no-commit-id"
	FlagNameOnly   = "--name-only"
	FlagOneline    = "--oneline"
	FlagSince      = "--since"
	FormatAuthor   = "--format=%aN"
	FormatEmpty    = "--format="
)

Git log flags.

View Source
const Binary = "git"

Binary is the git executable name.

View Source
const (
	// FlagShowToplevel is a git flag.
	FlagShowToplevel = "--show-toplevel"
)

Git rev-parse flags.

View Source
const PathSeparator = "/"

PathSeparator is the separator git uses in file paths (always forward slash).

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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