Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

P4::C4::Ignore
Read a cvs ignore file

P4::C4::Ignore - Read a cvs ignore file



NAME

P4::C4::Ignore - Read a cvs ignore file


SYNOPSIS


  use P4::C4::Ignore;

  my $ign = new P4::C4::Ignore();

  $ign->isIgnored ($filename);

  ...


DESCRIPTION

The the P4::C4::Ignore manpage package reads .cvsignore files and provides matching functions.


IGNORE FILES

Ignore files are mostly compatible with CVS. The global list of ignores is initialized with:


    *~      #*      .#*     ,*      _$*     *$

    *.old   *.bak   *.BAK   *.orig  *.rej   .del-*

    *.a     *.olb   *.o     *.obj   *.so    *.exe

    *.Z     *.elc   *.ln

    .c4cache     .p4config

    .make.state  .nse_depinfo  .dependency-info

    tags         TAGS

    core

Patterns in the home directory file ~/.cvsignore, or the CVSIGNORE environment variable are appended to this list.

Each directory may have a local '.cvsignore' file. The patterns found in local `.cvsignore' are only valid for the directory that contains them, not for any sub-directories.

In any of the places listed above, a single exclamation mark (`!') clears the ignore list. This can be used if you want to store any file which normally is ignored.

The wildcards * and ? are honored, no other wildcards are currently supported.


METHODS

$ign = P4::C4::Ignore->new ( opts )
Create a new Ignore hash. ``filename=>filename'' may be specified to override the default of .cvsignore for reading the ignore file.

Any .cvsignore files that are read are cached in this object to save time. Thus if a .cvsignore file is being written by the application, a new object will have to be created to clear the hash.

$self->is_ignored ( $file )
Returns true if the file is being ignored.


SEE ALSO

the P4::C4 manpage


DISTRIBUTION

The latest version is available from CPAN. The latest version is available from CPAN and from http://www.veripool.com/.

Copyright 2002-2005 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License or the Perl Artistic License.


AUTHORS

Wilson Snyder <wsnyder@wsnyder.org>

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy