Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 236755 Details for
Bug 416348
Double star pattern in gitignore is not handled correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Trial mod to handle **
jgit.astastmatch.patch (text/plain), 1.08 KB, created by
Andreas Krey
on 2013-10-22 05:33:18 EDT
(
hide
)
Description:
Trial mod to handle **
Filename:
MIME Type:
Creator:
Andreas Krey
Created:
2013-10-22 05:33:18 EDT
Size:
1.08 KB
patch
obsolete
>diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/fnmatch/FileNameMatcher.java b/org.eclipse.jgit/src/org/eclipse/jgit/fnmatch/FileNameMatcher.java >index 22840fb..acbab83 100644 >--- a/org.eclipse.jgit/src/org/eclipse/jgit/fnmatch/FileNameMatcher.java >+++ b/org.eclipse.jgit/src/org/eclipse/jgit/fnmatch/FileNameMatcher.java >@@ -267,12 +267,20 @@ private static int findGroupEnd(final int indexOfStartBracket, > for (int i = 0; i < patternPart.length(); i++) { > final char c = patternPart.charAt(i); > switch (c) { >- case '*': { >+ case '*': >+ if ((i == 0 || patternPart.charAt(i - 1) == '/') && >+ patternPart.length () > i + 2 && >+ patternPart.charAt(i + 1) == '*' && >+ patternPart.charAt(i + 2) == '/') { >+ i += 2; >+ heads.add(new WildCardHead(true)); >+ heads.add(new CharacterHead('/')); >+ } else { > final AbstractHead head = createWildCardHead( > invalidWildgetCharacter, true); > heads.add(head); >- break; > } >+ break; > case '?': { > final AbstractHead head = createWildCardHead( > invalidWildgetCharacter, false);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 416348
: 236755