Add "ls --hide".
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 26 Sep 2004 22:56:53 +0000 (22:56 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 26 Sep 2004 22:56:53 +0000 (22:56 +0000)
ChangeLog
doc/ChangeLog

index 5e4e6f2..8902bea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,26 @@
-2004-09-25  Paul Eggert  <eggert@cs.ucla.edu>
+2004-09-26  Paul Eggert  <eggert@cs.ucla.edu>
 
        * Version 5.3.0.
 
+       Add support for ls --hide.  Idea suggested by Bardur Arantsson.
+       * NEWS: Document this.
+       * src/ls.c (file_ignored): Renamed from file_interesting, with
+       inverted return value.  Accept the file name, not a struct dirent *.
+       All uses changed.  Avoid the expense of calling fnmatch if the
+       file is ignorable due to leading '.'.
+       (all_files, really_all_files): Removed; replaced by:
+       (ignore): New variable.  All uses changed.
+       (IGNORE_DEFAULT, IGNORE_DOT_AND_DOTDOT, IGNORE_MINIMAL, HIDE_OPTION):
+       New constants.
+       (hide_patterns): New variable.
+       (long_options, decode_switches, file_ignored, usage):
+       Add support for --hide.
+       (patterns_match): New function.
+       (usage): Replace "hide" with "ignore" in explanation, to avoid
+       confusion.
+
+2004-09-25  Paul Eggert  <eggert@cs.ucla.edu>
+
        * src/ls.c (gobble_file, print_long_format): Don't assume that
        human-readable output has a byte count equal to its column width;
        this isn't always true in locales where the radix character is not
index bbf9373..8ee852f 100644 (file)
@@ -1,3 +1,7 @@
+2004-09-26  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * coreutils.texi (ls invocation): Document "ls --hide".
+
 2004-09-24  Paul Eggert  <eggert@cs.ucla.edu>
 
        * coreutils.texi (chmod invocation): Warn about "chmod -w file".