-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
ls: fix symlink target coloring to match target file type #9006
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
src/uu/ls/src/ls.rs
Outdated
| config: &Config, | ||
| command_line: bool, | ||
| ) -> Self { | ||
| Self::new_with_dereference_override(p_buf, dir_entry, file_name, config, command_line, None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the point of keeping this function ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, it was from an earlier patchset.
src/uu/ls/src/ls.rs
Outdated
| if command_line { | ||
| if let Ok(md) = p_buf.metadata() { | ||
| md.is_dir() | ||
| let must_dereference = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe move this block into a new function to simplify the code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
GNU testsuite comparison: |
CodSpeed Performance ReportMerging #9006 will degrade performances by 3.53%Comparing Summary
Benchmarks breakdown
Footnotes
|
|
GNU testsuite comparison: |
fixes #8934