MCPcopy
hub / github.com/go-git/go-git / unscan

Method unscan

internal/revision/parser.go:135–135  ·  view source on GitHub ↗

unscan pushes the previously read token back onto the buffer.

()

Source from the content-addressed store, hash-verified

133
134// unscan pushes the previously read token back onto the buffer.
135func (p *Parser) unscan() { p.unreadLastChar = true }
136
137// Parse explode a revision string into revisioner chunks
138func (p *Parser) Parse() ([]Revisioner, error) {

Callers 10

TestUnscanMethod · 0.95
ParseMethod · 0.95
parseAtMethod · 0.95
parseTildeMethod · 0.95
parseCaretMethod · 0.95
parseCaretBracesMethod · 0.95
parseColonMethod · 0.95
parseColonSlashMethod · 0.95
parseColonDefaultMethod · 0.95
parseRefMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestUnscanMethod · 0.76