(path: &Path, suffix: &str)
| 1431 | } |
| 1432 | |
| 1433 | fn append_suffix(path: &Path, suffix: &str) -> PathBuf { |
| 1434 | let mut value = path.as_os_str().to_os_string(); |
| 1435 | value.push(suffix); |
| 1436 | PathBuf::from(value) |
| 1437 | } |
| 1438 | |
| 1439 | pub(super) fn resolve_common_dir(worktree_git_dir: &Path) -> Result<PathBuf, ObservationError> { |
| 1440 | let path = worktree_git_dir.join("commondir"); |