MCPcopy Create free account
hub / github.com/astral-sh/ruff / commit

Method commit

crates/ty_python_semantic/src/fixes.rs:672–678  ·  view source on GitHub ↗

Commits any staged changes.

(&mut self, file: File)

Source from the content-addressed store, hash-verified

670
671 /// Commits any staged changes.
672 fn commit(&mut self, file: File) {
673 self.staged_changes.remove(&file);
674
675 if !self.unstaged_changes.contains_key(&file) {
676 self.originals.remove(&file);
677 }
678 }
679}
680
681/// A file that's queued for fixing

Callers 1

fix_allFunction · 0.45

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected