mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-26 22:06:26 +00:00
Reword this comment
This commit is contained in:
parent
aa2e3a5d9e
commit
68e70bf036
@ -203,23 +203,24 @@ impl<'a> Render<'a> {
|
|||||||
// There are three “levels” of extended attribute support:
|
// There are three “levels” of extended attribute support:
|
||||||
//
|
//
|
||||||
// 1. If we’re compiling without that feature, then
|
// 1. If we’re compiling without that feature, then
|
||||||
// exa pretends no files have attributes.
|
// exa pretends all files have no attributes.
|
||||||
// 2. If the feature is enabled but the --extended flag
|
// 2. If the feature is enabled and the --extended flag
|
||||||
// hasn’t been specified, then display an @ in the
|
// has been specified, then display an @ in the
|
||||||
// permissions column for files with xattrs, but don’t
|
// permissions column for files with attributes, the
|
||||||
// display anything else.
|
// names of all attributes and their lengths, and any
|
||||||
// 3. If the --extended flag *has* been specified, then
|
// errors encountered when getting them.
|
||||||
// display the @, the attributes and their lengths,
|
// 3. If the --extended flag *hasn’t* been specified, then
|
||||||
// and any errors encountered when getting them.
|
// display the @, but don’t display anything else.
|
||||||
//
|
//
|
||||||
// For a while, exa took a stricter approach to (2): if
|
// For a while, exa took a stricter approach to (3):
|
||||||
// an error occurred while checking a file’s xattrs, exa
|
// if an error occurred while checking a file’s xattrs to
|
||||||
// would display that error even though the attributes
|
// see if it should display the @, exa would display that
|
||||||
// weren’t actually being shown! This was confusing, as
|
// error even though the attributes weren’t actually being
|
||||||
// users were being shown errors for something they didn’t
|
// shown! This was confusing, as users were being shown
|
||||||
// explicitly ask for, and just cluttered up the output.
|
// errors for something they didn’t explicitly ask for,
|
||||||
// So now errors aren’t printed unless the user passes
|
// and just cluttered up the output. So now errors aren’t
|
||||||
// --extended to signify that they want to see them.
|
// printed unless the user passes --extended to signify
|
||||||
|
// that they want to see them.
|
||||||
|
|
||||||
if xattr::ENABLED {
|
if xattr::ENABLED {
|
||||||
match file.path.attributes() {
|
match file.path.attributes() {
|
||||||
|
Loading…
Reference in New Issue
Block a user