pub fn shared_record<'a>(
data_dir: &Path,
map: &'a VaultMap,
root: &str,
) -> Option<&'a VaultRecord>Expand description
The vault record root is shared through, with the opt-out applied:
VaultMap::for_root falls back from
a worktree to its main checkout, which an unlinked worktree must not use
(bd 40060). None for an unlinked folder and, fail closed, for every
folder while the store is damaged.