MCPcopy Create free account
hub / github.com/bluekeyes/patch2pr / Reset

Method Reset

graphql_applier.go:361–365  ·  view source on GitHub ↗

Reset resets the applier so that future Apply calls start from commit base. It removes all pending file changes. Reset does not modify the repository.

(base string)

Source from the content-addressed store, hash-verified

359// Reset resets the applier so that future Apply calls start from commit base.
360// It removes all pending file changes. Reset does not modify the repository.
361func (a *GraphQLApplier) Reset(base string) {
362 a.commit = base
363 a.changes = make(map[string]pendingChange)
364 a.modeCache = make(map[string]os.FileMode)
365}
366
367func isModeChange(m1, m2 os.FileMode) bool {
368 return m1 != 0 && m2 != 0 && m1 != m2

Callers 1

NewGraphQLApplierFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected