pub struct Report {
pub key_id: [u8; 8],
pub declared: usize,
pub encrypted: Vec<PathBuf>,
pub swept: Vec<PathBuf>,
pub config_written: bool,
pub diff_driver_removed: bool,
pub attributes_written: bool,
pub key_removed: bool,
pub warnings: Vec<String>,
}Expand description
What lock did.
Fields§
§key_id: [u8; 8]Fingerprint of the key that was removed. Safe to print; the key is not.
declared: usizeHow many working-tree files the declaration selected.
Separate from Report::encrypted so the closing line can tell “nothing
to do, everything was already closed” from “nothing matched at all”. The
two look identical through a count of files written, and only one of them
is a repository that is now safe.
encrypted: Vec<PathBuf>Paths, relative to the working tree, that were encrypted in place.
swept: Vec<PathBuf>Leftover temporary files that were deleted on the way through.
Reported rather than swallowed: each one may have held a decrypted secret, and a user is entitled to know one was lying around.
config_written: boolThe filter registration was written or repaired.
diff_driver_removed: boolThe diff driver was deregistered — which happens on every healthy lock.
Separate from Report::config_written, which means “something was
broken and I fixed it”. Merging them made every lock claim a repair.
attributes_written: boolThe managed .gitattributes section was written or repaired.
key_removed: boolThe key file is gone.
warnings: Vec<String>Anything worth saying once, carried out so the binary owns the messages.