Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[mdz@xxxxxxxxxx: Bug#147853: zsh: CVS completion should respect $CVSIGNORE]



----- Forwarded message from Matt Zimmerman <mdz@xxxxxxxxxx> -----

>From the CVS docs "Ignoring files via cvsignore":

   * The list is initialized to include certain file name patterns:
[...]
   * The per-repository list in `$CVSROOT/CVSROOT/cvsignore' is
     appended to the list, if that file exists.

   * The per-user list in `.cvsignore' in your home directory is
     appended to the list, if it exists.

   * Any entries in the environment variable `$CVSIGNORE' is appended
     to the list.

   * Any `-I' options given to CVS is appended.

   * As CVS traverses through your directories, the contents of any
     `.cvsignore' will be appended to the list.  The patterns found in
     `.cvsignore' are only valid for the directory that contains them,
     not for any sub-directories.

--- /tmp/_cvs.old       Thu May 23 00:14:38 2002
+++ /usr/share/zsh/4.0.4/functions/Completion/Unix/_cvs Thu May 23 00:14:41 2002
@@ -964,6 +964,7 @@
       ${=cvsignore}
     )
     [[ -r ~/.cvsignore ]] && omitpats=($omitpats $(<~/.cvsignore))
+    omitpats=($omitpats $CVSIGNORE)
     [[ -r ${realdir}.cvsignore ]] && omitpats=($omitpats $(<${realdir}.cvsignore))
 
     _path_files -g "*~(*/|)(${(j:|:)~omitpats})(D.)"


----- End forwarded message -----



Messages sorted by: Reverse Date, Date, Thread, Author