Florian Koeberle <florianskarten@web.de> wrote:Why go through all this work to buffer the lines we don't care about (starting with # or are blank) when we could just discard them in the inside of createIgnoreRuleList and then create the rule right away? I suspect this code would be easier to follow if you just accepted changing the method parameter, such as: private Rule createRule(String pattern) { boolean exclude = true; if (pattern.startsWith("!)) { pattern = pattern.substring(1); exclude = false; } "foo/bar" will always end up in this code-path and will not match in all levels of the tree if I follow your code correctly. An ignore rule in the top level of "foo/bar" should ignore any entry named "bar" within a directory "foo" at any level of the tree, even if it is 35 directories down from the root. Isn't ComplexFilePattern about the absolute (starts with "/") cases only? StringTokenizer is more-or-less replaced by String.split("/"), with the split method being the more preferred method of doing this. -- Shawn. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Linus Torvalds | Linux 2.6.27-rc8 |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| Greg KH | Linux 2.6.25.10 |
git: | |
| Sverre Rabbelier | Git vs Monotone |
| Robert Collins | Re: VCS comparison table |
| Junio C Hamano | Re: git-diff on touched files: bug or feature? |
| Linus Torvalds | Re: [PATCH] Avoid running lstat(2) on the same cache entry. |
| Steve Shockley | Re: Real men don't attack straw men |
| chefren | Re: [Fwd: Open-Hardware] |
| ropers | Re: About Xen: maybe a reiterative question but .. |
| Leon Dippenaar | New tcp stack attack |
| David Miller | Re: [GIT]: Networking |
| Jeff Garzik | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Ilpo Järvinen | Re: [bug] stuck localhost TCP connections, v2.6.26-rc3+ |
| Sangtae Ha | Re: A Linux TCP SACK Question |
