package revision

Import Path
	github.com/go-git/go-git/v5/internal/revision (on go.dev)

Dependency Relation
	imports 8 packages, and imported by one package

Involved Source Files Package revision extracts git revision from string More information about revision : https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html scanner.go token.go
Package-Level Type Names (total 19, in which 16 are exported)
/* sort exporteds by: | */
AtCheckout represents @{-n} Depth int
AtDate represents @{"2006-01-02T15:04:05Z"} Date time.Time
AtPush represents @{push} BranchName string
AtReflog represents @{n} Depth int
AtUpstream represents @{upstream}, @{u} BranchName string
CaretPath represents ^, ^{n} Depth int
CaretReg represents ^{/foo bar} Negate bool Regexp *regexp.Regexp
CaretType represents ^{commit} ObjectType string
ColonPath represents :./<path> :<path> Path string
ColonReg represents :/foo bar Negate bool Regexp *regexp.Regexp
ColonStagePath represents :<n>:/<path> Path string Stage int
ErrInvalidRevision is emitted if string doesn't match valid revision (*T) Error() string *T : error
Parser represents a parser use to tokenize and transform to revisioner chunks a given string Parse explode a revision string into revisioner chunks func NewParser(r io.Reader) *Parser func NewParserFromString(s string) *Parser
Ref represents a reference name : HEAD, master
Revisioner represents a revision component. A revision is made of multiple revision components obtained after parsing a revision string, for instance revision "master~" will be converted in two revision components Ref and TildePath func (*Parser).Parse() ([]Revisioner, error)
TildePath represents ~, ~{n} Depth int
Package-Level Functions (total 4, in which 2 are exported)
NewParser returns a new instance of parser.
NewParserFromString returns a new instance of parser from a string.
Package-Level Variables (only one, which is unexported)
Package-Level Constants (total 20, none are exported)