~mdw
/
tgal
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mason/.perl-lib/TrivGal.pm: Introduce a `-' flag to hide an entry.
[tgal]
/
mason
/
.perl-lib
/
TrivGal.pm
diff --git
a/mason/.perl-lib/TrivGal.pm
b/mason/.perl-lib/TrivGal.pm
index
b47835a
..
80cce08
100644
(file)
--- a/
mason/.perl-lib/TrivGal.pm
+++ b/
mason/.perl-lib/TrivGal.pm
@@
-304,12
+304,13
@@
sub listdir ($) {
} else {
if ($item && $comment) { $item->comment($comment); }
my ($flags, $name, $c) =
} else {
if ($item && $comment) { $item->comment($comment); }
my ($flags, $name, $c) =
- /^ (?: ([
!]+) \s+)?
# flags
+ /^ (?: ([
-!]+) \s+)?
# flags
(\S+) \s* # filename
(\S | \S.*\S )? # start of the comment
\s*
$/x;
my $indexp = $flags =~ /!/;
(\S+) \s* # filename
(\S | \S.*\S )? # start of the comment
\s*
$/x;
my $indexp = $flags =~ /!/;
+ my $hidep = $flags =~ /-/;
$name = urldecode $name;
my $list;
$item = TrivGal::Item->new($name);
$name = urldecode $name;
my $list;
$item = TrivGal::Item->new($name);
@@
-326,7
+327,7
@@
sub listdir ($) {
}
}
$comment = $c;
}
}
$comment = $c;
- push @$list, $item;
+ push @$list, $item
unless $hidep
;
}
}
if ($item && $comment) { $item->comment($comment); }
}
}
if ($item && $comment) { $item->comment($comment); }