Skip to content
automate adding stuff to .XXXignore files
Other
  1. Other 100.0%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
t
.gitignore
.travis.yml
META6.json
README.md

README.md

Easiest way to ignore junk in your VCS folder

Currently supported : hg, git

TODO :
 - multiply ignore files

Usage:
  bin/ignore [--debug] [--git] [--hg] [--all] <source>
sub ignore($ifile, $pattern) {
    my $res = find(:dir<.>, :name($ifile));
    given $res.elems {
        when 1 {
            log $res[0].fmt('found single ignore file at %s');
            if analyze( $res[0], $pattern ) { log 'this file is already in ignore file'; }
            else {
                log 'adding new node to ignore file';
                f $res[0], :a, { .say( $pattern ); }
You can’t perform that action at this time.