Whether deleting `path` would destroy uncommitted edits, mirroring the guard `git rm` applies without `-f`. Fails closed: if status cannot be computed the path counts as dirty, so a refusal never deletes bytes it could not verify.
(
&self,
repo: &Repository,
working_copy: atomic_core::WorkingCopyId,
path: &Path,
)
| 518 | /// Fails closed: if status cannot be computed the path counts as dirty, so a |
| 519 | /// refusal never deletes bytes it could not verify. |
| 520 | fn has_uncommitted_edits( |
| 521 | &self, |
| 522 | repo: &Repository, |
| 523 | working_copy: atomic_core::WorkingCopyId, |
| 524 | path: &Path, |
| 525 | ) -> bool { |
| 526 | repo.has_uncommitted_edits(working_copy, path) |
| 527 | .unwrap_or(true) |
| 528 | } |
| 529 | } |
| 530 | |
| 531 | /// Format a count with singular/plural word. |