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)
| 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. |
| 361 | func (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 | |
| 367 | func isModeChange(m1, m2 os.FileMode) bool { |
| 368 | return m1 != 0 && m2 != 0 && m1 != m2 |