Re: [JGIT PATCH v3 06/23] Added the class FileNamePattern.
- From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
- Date
- Jun 6, 2008, 00:22 UTC
- Message-ID
- <200806060222.57591.robin.rosenberg.lists@dewire.com>
- In-Reply-To
- <1211574872-23676-7-git-send-email-florianskarten@web.de>
Show 5 quoted lines
> + public boolean match(String fileName, boolean fileIsDirectory) {
> + if (matchDirectoriesOnly && !fileIsDirectory) {
> + return false;
> + }
> + fileNameMatcher.resetStringToMatch();Partially discusses before, but here is another aspect. One advantage with bracketless code is that you get an extra blank line for free.
if (matchDirectoriesOnly && !fileIsDirectory) return false;
fileNameMatcher.resetStringToMatch();
-- robin