(self, path: &RepoPath)
| 261 | } |
| 262 | |
| 263 | pub fn exclusion(self, path: &RepoPath) -> Option<ExclusionReason> { |
| 264 | if atomic_private_path(path.as_bytes()) |
| 265 | && (path.as_bytes() != b".atomicignore" || !self.includes_atomic_ignore()) |
| 266 | { |
| 267 | Some(ExclusionReason::AtomicPrivate) |
| 268 | } else if path.components().next().unwrap_or_default() == b".vault" |
| 269 | && !self.includes_vault() |
| 270 | { |
| 271 | Some(ExclusionReason::VaultPrivate) |
| 272 | } else { |
| 273 | None |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | /// Resolve the vault half of the policy for one live colocated Git |
| 278 | /// repository (RFC §6.2: "`.vault/` is private by default but may be |
no test coverage detected