From: Bernhard R. Link Date: Mon, 30 Jan 2012 16:29:32 GMT Subject: Re: [PATCH v5.5 1/5] gitweb: prepare git_get_projects_list for use outside 'forks'. Message-ID: <20120130162932.GA18773@server.brlink.eu> In-Reply-To: <201201301640.35843.jnareb@gmail.com> * Jakub Narebski [120130 16:40]: > 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