Github user anmolnar commented on the issue:
https://github.com/apache/zookeeper/pull/488
@afine In the other way around: if there's no '/' at the beginning of the
keyword, git will check the entire path relative to the root for the string
`generated` and if it finds a match, it'll ignore all files underneath.
My suggestion is to remove `generated` keyword from .gitignore - like in
this PR -, because 'real' generated folders are already excluded explicitly.
There could be other possible solutions to the problem, I'm open to them.
---