Skip to content

Commit

Permalink
renamed dash_a to dash_a_file_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Aug 19, 2007
1 parent 1813184 commit 29033cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Ack.pm
Expand Up @@ -503,13 +503,13 @@ sub is_interesting {
return ( $include && not $exclude );
}

=head2 dash_a
=head2 dash_a_file_filter
File filter for the -a option
=cut

sub dash_a {
sub dash_a_file_filter {
return App::Ack::is_searchable( $File::Next::name );
}

Expand Down
2 changes: 1 addition & 1 deletion ack
Expand Up @@ -148,7 +148,7 @@ sub main {

my @what = App::Ack::_process_remaining_command_line(\%opt, $regex);

my $file_filter = $opt{all} ? \&App::Ack::dash_a : \&App::Ack::is_interesting;
my $file_filter = $opt{all} ? \&App::Ack::dash_a_file_filter : \&App::Ack::is_interesting;
my $descend_filter = $opt{n} ? sub {0} : \&App::Ack::skipdir_filter;

my $iter =
Expand Down
4 changes: 2 additions & 2 deletions ack-standalone
Expand Up @@ -146,7 +146,7 @@ sub main {

my @what = App::Ack::_process_remaining_command_line(\%opt, $regex);

my $file_filter = $opt{all} ? \&App::Ack::dash_a : \&App::Ack::is_interesting;
my $file_filter = $opt{all} ? \&App::Ack::dash_a_file_filter : \&App::Ack::is_interesting;
my $descend_filter = $opt{n} ? sub {0} : \&App::Ack::skipdir_filter;

my $iter =
Expand Down Expand Up @@ -1109,7 +1109,7 @@ sub is_interesting {
}


sub dash_a {
sub dash_a_file_filter {
return App::Ack::is_searchable( $File::Next::name );
}

Expand Down

0 comments on commit 29033cb

Please sign in to comment.