This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Gitignore options are not taken into account | ||
---|---|---|---|
Product: | versioncontrol | Reporter: | alumni |
Component: | Git | Assignee: | Ondrej Vrabec <ovrabec> |
Status: | NEW --- | ||
Severity: | normal | CC: | git, reinouts |
Priority: | P4 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
alumni
2014-04-02 23:11:15 UTC
I understand double '*', but what about {,}? JGit simply does not support everything from glob patterns, it merely tries to keep track with what is stated in git help ignore. See also bug #242551 for double asterisks pattern. The only advise i can give you is not to use {,}. I was using glob patterns before with the commandline git client, so when I switched the project to Netbeans, I was expecting it to support them too... Anyway, here's some other pattern that doesn't work for me (might be related to the ** issue): The file I need to ignore is /project/app/settings/local.py The following patterns won't work: settings/local.py (works with regular git) **/settings/local.py /**/settings/local.py But the following will: /*/*/settings/local.py my bad, "settings/local.py" doesn't work with regular git, but "**/settings/local.py" does. I have a similar issues. Here are my settings: # Ignore build folders **/target # Ignore Netbeans Maven extensions **/nbactions*.xml **/nb-configuration.xml From the command-line, I run: git add --all git status The output correctly ignores these files. ./nbactions.xml .some/nested/project/nb-configuration.xml However, when I run "Git > Show Changes", NetBeans displays both of these files with the status of "-/Added". Moreover, many times after working on int my repository, Netbeans will insert entries for every target folder in my Maven project hierarchy. For example: target some/nested/project/target some/other/project/target foo/bar/target Possible duplicate of issue #242551 as well? (In reply to reinouts from comment #5) > Possible duplicate of issue #242551 as well? This one covers also {} patterns and the full fnmatch syntax which i think will not be fixed in JGit any time soon. On the other hand ** might come sooner so better to keep the issues separated |