VCS::LibCVS::IgnoreChecker - Ask it if a file should be ignored.
my $ignorer = VCS::LibCVS::IgnoreChecker->new($repository); if ( $ignorer->ignore_check("dir1/file1") ) {
CVS has an involved way of deciding which files should be ignored, and which shouldn't. Create an IgnoreChecker, and ask it if a file should be ignored.
The CVSROOT directory in the repository contains some information about what to ignore, so you'll need a Repository to create an IgnoreChecker.
See the CVS info page for which files are ignored.
$ignorer = VCS::LibCVS::IgnoreChecker->new($repository)
The repository from which to retrieve global information.
Creates a new IgnoreChecker, for a specific repository.
if ($ignorer->ignore_check("module/file1")) {
Returns true if the file is ignored by CVS
Filename to check. The filename must be qualified with its directory name so that the .cvsignore in that directory may be checked. The path may be relative or absolute.
Checks if the file should be ignored. See CVS info page for how this is done.
VCS::LibCVS
To install VCS::LibCVS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm VCS::LibCVS
CPAN shell
perl -MCPAN -e shell install VCS::LibCVS
For more information on module installation, please visit the detailed CPAN module installation guide.