Thread (41 messages) flat view 41 messages, 3 authors, 2016-06-15

Re: [JGIT PATCH v3 06/23] Added the class FileNamePattern.

From: Robin Rosenberg <hidden>
Date: 2016-06-15 22:44:41

+	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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help