Re: [PATCH v5.5 1/5] gitweb: prepare git_get_projects_list for use outside 'forks'.
- From
- Bernhard R. Link <brl+git@mail.brlink.eu>
- Date
- Jan 30, 2012, 16:29 UTC
- Message-ID
- <20120130162932.GA18773@server.brlink.eu>
- In-Reply-To
- <201201301640.35843.jnareb@gmail.com>
* Jakub Narebski <jnareb@gmail.com> [120130 16:40]:
Show 11 quoted lines
> Perhaps there are other cases...
>
> > @@ -2841,7 +2840,7 @@ sub git_get_projects_list {
> > my $pfxlen = length("$dir");
> > my $pfxdepth = ($dir =~ tr!/!!);
> > # when filtering, search only given subdirectory
> > - if ($filter) {
> > + if ($filter and not $paranoid) {
>
> Hmmmm... ($filter and !$paranoid) or ($filter && !$paranoid)?
> Which would be more Perl-ish and fit current code style better...I cannot say what is more perlish, but gitweb.perl seems to contain only the combinations "and not" (1 time) and "&& !" (8 times).
Bernhard R. Link