-
Couldn't load subscription status.
- Fork 272
Open
Description
The comment says it is done only for the short format:
Lines 493 to 496 in 57c7529
| // When printing paths we try to strip the cwd if it exists, otherwise | |
| // we just print the path as-is. Note that we also only do this for the | |
| // short format, because if it's full we presumably want to print | |
| // everything. |
Lines 501 to 507 in 57c7529
| if style == PrintFmt::Full { | |
| if let Ok(cwd) = &cwd { | |
| if let Ok(suffix) = path.strip_prefix(cwd) { | |
| return fmt::Display::fmt(&suffix.display(), fmt); | |
| } | |
| } | |
| } |
Metadata
Metadata
Assignees
Labels
No labels