Add another ignore example to the manual and test suite.

This commit is contained in:
Adam Spiers 2011-12-21 11:45:43 +00:00
parent 6e5331814d
commit 7c90000393
2 changed files with 7 additions and 7 deletions

View file

@ -505,11 +505,11 @@ expressions which contain @samp{/}, and @code{bazqux} as the text for
matching against regular expressions which don't contain @samp{/}.
Then regular expressions @code{bazqux}, @code{baz.*}, @code{.*qux},
@code{bar/.*x}, and @code{^/foo/.*qux} would all match (causing the
file to be ignored), whereas @code{bar}, @code{baz}, and @code{qux}
would not (although @code{bar} would cause its parent directory to be
ignored and prevent Stow from recursing into that anyway, in which
case the file @file{bazqux} would not even be considered for
stowing).
file to be ignored), whereas @code{bar}, @code{baz}, @code{qux}, and
@code{o/bar/b} would not (although @code{bar} would cause its parent
directory to be ignored and prevent Stow from recursing into that
anyway, in which case the file @file{bazqux} would not even be
considered for stowing).
As a special exception to the above algorithm, any
@file{.stow-local-ignore} present in the top-level package directory

View file

@ -8,7 +8,7 @@ use strict;
use warnings;
use File::Temp qw(tempdir);
use Test::More tests => 286;
use Test::More tests => 287;
use testutil;
use Stow::Util qw(join_paths);
@ -235,7 +235,7 @@ sub test_examples_in_manual {
);
}
for my $re ('bar', 'baz', 'qux') {
for my $re ('bar', 'baz', 'qux', 'o/bar/b') {
my $local_ignore = setup_package_local_list($stow_path, $package, "$re\n");
test_ignores(
$stow_path, $package, $context,