(path: &Path)
| 3173 | } |
| 3174 | |
| 3175 | fn path_to_git_string(path: &Path) -> CliResult<String> { |
| 3176 | let components: Result<Vec<_>, _> = path |
| 3177 | .components() |
| 3178 | .map(|component| { |
| 3179 | component |
| 3180 | .as_os_str() |
| 3181 | .to_str() |
| 3182 | .map(str::to_owned) |
| 3183 | .ok_or_else(|| git_error("working tree contains a non-UTF-8 path")) |
| 3184 | }) |
| 3185 | .collect(); |
| 3186 | Ok(components?.join("/")) |
| 3187 | } |
| 3188 | |
| 3189 | fn tracked_delta(status: Status) -> bool { |
| 3190 | status.intersects( |
no test coverage detected