The shared refusal sentence for both removal paths, so a caller sees one explanation whether the local body or the service handler rejected the request. Only uncommitted edits can refuse a request now: `--keep` has a real `git rm --cached` meaning and never needs guidance toward the move-aside dance.
(dirty_guarded: &[String])
| 474 | /// real `git rm --cached` meaning and never needs guidance toward the |
| 475 | /// move-aside dance. |
| 476 | pub(crate) fn refusal_message(dirty_guarded: &[String]) -> String { |
| 477 | format!( |
| 478 | "recorded path(s) have uncommitted edits: {}; deleting them would discard \ |
| 479 | those edits (--force to discard, or --keep to untrack while keeping the \ |
| 480 | bytes)", |
| 481 | dirty_guarded.join(", ") |
| 482 | ) |
| 483 | } |
| 484 | |
| 485 | /// The paths whose bytes are still in the working copy because the deletion could |
| 486 | /// not be performed, shared by both removal paths. |
no outgoing calls