Documentation
¶
Overview ¶
Package git implements the "safe git" wrapper: it parses a git argv and reports known-dangerous invocations so the command layer can refuse them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GlobalOpt ¶
GlobalOpt is a git global option appearing before the subcommand, e.g. {Name: "-c", Value: "core.hooksPath=/dev/null"} or {Name: "-p"}.
type Invocation ¶
Invocation is a git command line split into its global options, the subcommand, and the subcommand's own arguments (flags and positionals).
func Parse ¶
func Parse(argv []string) Invocation
Parse splits argv into global options followed by the first non-global token (the subcommand) and its remaining args.
Click to show internal directories.
Click to hide internal directories.