06 Oct 2010 00:48:36 UTC
- Distribution: File-Find-Rule-VCS
- Module version: 1.08
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (2)
- Testers (3580 / 2 / 0)
- KwaliteeBus factor: 1
- 88.89% Coverage
- License: perl_5
- Perl: v5.5.30
- Download (29.52KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- TO DO
- SEE ALSO
File::Find::Rule::VCS - Exclude files/directories for Version Control Systems
use File::Find::Rule (); use File::Find::Rule::VCS (); # Find all files smaller than 10k, ignoring version control files my @files = File::Find::Rule->ignore_vcs ->file ->size('<10Ki') ->in( $dir );
Many tools need to be equally useful both on ordinary files, and on code that has been checked out from revision control systems.
File::Find::Rule::VCS provides quick and convenient methods to exclude the version control directories of several major Version Control Systems (currently CVS, subversion, and Bazaar).
File::Find::Rule::VCS implements methods to ignore the following:
In addition, the following version control systems do not create directories in the checkout and do not require the use of any ignore methods
# Ignore all common version control systems $find->ignore_vcs; # Ignore a specific named version control systems $find->ignore_vcs($name); # Ignore nothing (silent pass-through) $find->ignore_vcs('');
ignore_vcsmethod excludes the files for a named Version Control System from your File::Find::Rule search.
If passed, the name of the version control system is case in-sensitive. Names currently supported are 'cvs', 'svn', 'subversion', 'bzr', and 'bazaar'.
As a convenience for high-level APIs, if the VCS name is the defined null string '' then the call will be treated as a nullop.
If no params at all are passed, this method will ignore all supported version control systems. If ignoring every version control system, please note that any legitimate directories called "CVS" or files starting with .# will be ignored, which is not always desirable.
In widely-distributed code, you instead should try to detect the specific version control system used and call ignore_vcs with the specific name.
undef, or an unsupported name, will throw an exception.
ignore_cvsmethod excluding all CVS directories from your File::Find::Rule search.
It will also exclude all the files left around by CVS after an automated merge that start with
ignore_rcsmethod excluding all RCS directories from your File::Find::Rule search.
It will also exclude all the files used by RCS to store the revisions (end with
ignore_svnmethod excluding all Subversion (
.svn) directories from your File::Find::Rule search.
ignore_bzrmethod excluding all Bazaar (
.bzr) directories from your File::Find::Rule search.
ignore_gitmethod excluding all Git (
.git) directories from your File::Find::Rule search.
ignore_hgmethod excluding all Mercurial/Hg (
.hg) directories from your File::Find::Rule search.
- Add support for other version control systems.
- Add other useful VCS-related methods
Bugs should always be submitted via the CPAN bug tracker
For other issues, contact the maintainer
Adam Kennedy <email@example.com>
Copyright 2005 - 2010 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Module Install Instructions
To install File::Find::Rule::VCS, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install File::Find::Rule::VCS
For more information on module installation, please visit the detailed CPAN module installation guide.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|