Reword this comment

This commit is contained in:
Benjamin Sago 2017-09-13 20:45:41 +01:00
parent aa2e3a5d9e
commit 68e70bf036

View File

@ -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 were compiling without that feature, then // 1. If were 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
// hasnt been specified, then display an @ in the // has been specified, then display an @ in the
// permissions column for files with xattrs, but dont // 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 *hasnt* been specified, then
// and any errors encountered when getting them. // display the @, but dont 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 files xattrs, exa // if an error occurred while checking a files xattrs to
// would display that error even though the attributes // see if it should display the @, exa would display that
// werent actually being shown! This was confusing, as // error even though the attributes werent actually being
// users were being shown errors for something they didnt // shown! This was confusing, as users were being shown
// explicitly ask for, and just cluttered up the output. // errors for something they didnt explicitly ask for,
// So now errors arent printed unless the user passes // and just cluttered up the output. So now errors arent
// --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() {