(path: &Path)
| 3217 | } |
| 3218 | |
| 3219 | fn path_to_git_string(path: &Path) -> CliResult<String> { |
| 3220 | let components: Result<Vec<_>, _> = path |
| 3221 | .components() |
| 3222 | .map(|component| { |
| 3223 | component |
| 3224 | .as_os_str() |
| 3225 | .to_str() |
| 3226 | .map(str::to_owned) |
| 3227 | .ok_or_else(|| git_error("working tree contains a non-UTF-8 path")) |
| 3228 | }) |
| 3229 | .collect(); |
| 3230 | Ok(components?.join("/")) |
| 3231 | } |
| 3232 | |
| 3233 | fn tracked_delta(status: Status) -> bool { |
| 3234 | status.intersects( |
no test coverage detected