mbien closed issue #7319: .gitignore rules evaluated incorrectly
URL: https://github.com/apache/netbeans/issues/7319
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To
mbien commented on issue #7319:
URL: https://github.com/apache/netbeans/issues/7319#issuecomment-2096702651
what should we do with this one? close?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go
pressing-buttons commented on issue #7319:
URL: https://github.com/apache/netbeans/issues/7319#issuecomment-2073075894
Hmm, strange. I wonder why the files aren't ignored when I change them from
the command line.
--
This is an automated message from the Apache Git Service.
To
neilcsmith-net commented on issue #7319:
URL: https://github.com/apache/netbeans/issues/7319#issuecomment-2072851757
Just came to say same thing! You likely need to use a second negate pattern
with an end slash to get the desired behaviour.
--
This is an automated message from the Apache
mbien commented on issue #7319:
URL: https://github.com/apache/netbeans/issues/7319#issuecomment-2072841756
> According to the git documentation **/*out* should only exclude files, not
directories (that would require a / at the end of the expression).
quote from the doc:
"If
pressing-buttons commented on issue #7319:
URL: https://github.com/apache/netbeans/issues/7319#issuecomment-2072819818
According to the git documentation `**/*out*` should **only** exclude files,
not directories (that would require a `/` at the end of the expression). I can
modify and
mbien commented on issue #7319:
URL: https://github.com/apache/netbeans/issues/7319#issuecomment-2071529270
```
$ git check-ignore -v src/main/java/com/example/router/SomeService.java
.gitignore:3:**/*out*
src/main/java/com/example/router/SomeService.java
```
the
pressing-buttons commented on issue #7319:
URL: https://github.com/apache/netbeans/issues/7319#issuecomment-2071451219
What does `git check-ignore` show for you? For me, it doesn't list the files
in the `router` directory which means (at least in my understanding) that git
doesn't ignore
mbien commented on issue #7319:
URL: https://github.com/apache/netbeans/issues/7319#issuecomment-2071237691
> In the Projects window SomeService.java is displayed as an ignored file,
even though it's not ignored by git.
i removed `.git` and ran `git init` + commit again as