(self, path: &RepoPath)
| 248 | |
| 249 | impl ExclusionPolicy { |
| 250 | pub fn exclusion(self, path: &RepoPath) -> Option<ExclusionReason> { |
| 251 | if atomic_private_path(path.as_bytes()) { |
| 252 | Some(ExclusionReason::AtomicPrivate) |
| 253 | } else if path.components().next().unwrap_or_default() == b".vault" |
| 254 | && self == Self::ShimPrivate |
| 255 | { |
| 256 | Some(ExclusionReason::VaultPrivate) |
| 257 | } else { |
| 258 | None |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | /// Resolve the vault half of the policy for one live colocated Git |
| 263 | /// repository (RFC §6.2: "`.vault/` is private by default but may be |
no test coverage detected