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

Method commit

crates/ty_python_semantic/src/fixes.rs:685–691  ·  view source on GitHub ↗

Commits any staged changes.

(&mut self, file: File)

Source from the content-addressed store, hash-verified

683
684 /// Commits any staged changes.
685 fn commit(&mut self, file: File) {
686 self.staged_changes.remove(&file);
687
688 if !self.unstaged_changes.contains_key(&file) {
689 self.originals.remove(&file);
690 }
691 }
692}
693
694/// A file that's queued for fixing

Callers 1

fix_allFunction · 0.45

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected