Community
Participate
Working Groups
Created attachment 201272 [details] Screenshot depicting the behaviour in question. My new Java files for the tests/org.eclipse.e4.core.tests/ bundle does not appear to be showing up. It does not get the '?' decorator in Eclipse and 'git status' on the command line gives me nothing. The project root works and the src/ folder works though.
I don't seem to have this problem in the eclipse.platform.ui repository although their .gitignore files _appear_ to be identical.
I get this when I try to add from the CLI. ------------------ C:\git\eclipse.platform.runtime>git add tests\org.eclipse.e4.core.tests\src\org\ eclipse\e4\core\internal\tests\contexts\inject\Bug354427Test.java The following paths are ignored by one of your .gitignore files: tests/org.eclipse.e4.core.tests/src/org/eclipse/e4/core Use -f if you really want to add them. fatal: no files added C:\git\eclipse.platform.runtime>
I'm wondering if the "core" entry in .gitignore is the problem. I'm not sure how to fix this since the .gitignore file was added through Paul's black magic rather than a normal commit. In any case .gitignore problems should never block anything. You can always override and add something even if it matches an ignore pattern.
Using -f from the command line worked. I'll open a bug with EGit to get it to work from the UI.
I thought it should have only been a problem for a core file, as the entry wasn't core/ If it needs to be changed ... well, we can still do it, but it'll either be a rebase and we'll get all new hashes or it needs to be fixed in the tip of the branches we care about. That implies we have the same problem in core/context and core/di PW
Opened bug 354436 against EGit.
It indeed appears to be the "core" entry in .gitignore. It looks like "core/" will only match a directory, whereas "core" will match both files and directories. I have updated the .gitignore in master only. Once I did that, new files under a directory called "core" were correctly showing up.