1. 14 9月, 2015 1 次提交
  2. 26 8月, 2015 2 次提交
    • B
      Print xattrs in tree view like we do errors · 69b22a0d
      Ben S 提交于
      This changes the way extended attributes (xattrs) are printed. Before, they were artificially printed out on their own line both in lines mode *and* details mode, which looked a bit weird. Now, they are additional 'child nodes' of that item that get printed alongside errors.
      
      All this allows all the 'extra info' that is going to be present for very few entries to be consolidated and listed in the same way, without resorting to extra printlns.
      
      As a great side-effect, it allows taking out some of the more redundant code in the Table impl -- it is now *always* going to be in create-child-nodes mode, as *any* file now can, not only when we have the --tree flag in use.
      
      Also, it now actually displays errors when failing to read the extended attributes, such as if the user doesn't have permission to read them.
      
      The extended attribute flag has been temporarily disabled while I work out the best way to do it!
      69b22a0d
    • B
      Coalesce platform-specific xattr modules · a250f212
      Ben S 提交于
      Now we have one Ur-module that contains functionality common to both supported platforms.
      
      The benefits of doing it this way are that:
      
      1. It doesn't implement a dummy interface - rather, there will be less code generated when the feature is not present;
      2. The code shared between them can be kept in sync. The other two modules were something like 80% the same.
      a250f212