pub fn run(repo: &Repo, confirm: &mut dyn Confirm) -> Result<Outcome>Expand description
Locks repo: encrypts every selected file, then removes the key.
§Errors
Error::NoKey when there is no key to remove — which is also what a second
run reports, harmlessly. Error::Config when .git-xcrypt is missing or
unreadable, when a selected file holds content the repository does not store,
or when something in the way stops this command proving either. Error::Format
or Error::KeyMismatch for a file already encrypted under another key.
Error::Io on a read or write failure.