Community
Participate
Working Groups
Hi, sometimes, when I develop new projects, I forget to add untracked files because they are in subdirectories and I have collapsed most of the directories. Sometimes there are very deep hierarchical structures and it's troublesome to search for untracked files in my src folder. So the main statement: I need an icon in the package explorer that shows whether there are untracked files that are not listet in .gitignore.
This works here, if an untracked file is present in a subfolder a dirty decorator is shown on all folders above including the enclosing Eclipse project. If you are using the latest EGit release 4.2 you also get a dirty marker on the repository shown in the git repositories view. Decorations can be customized in Preferences > Team > Git > Label Decorations. And I would recommend to use the staging view for this purpose. It's always showing the current git status for the selected repository including untracked files. So if the working tree is clean the staging view's staged and unstaged changes panes are empty.
Created attachment 259871 [details] screenshot, jgit repository with one new untracked class org.eclipse.jgit.api.A.java
Yes you are right. The problem of ">" is, that it is also shown, when there are uncommited changes in my subfolders. So if I stage my changes and commit, I just could recognize after my commit that something is untracked. So maybe it would make sense to show the questionmark label decoration on a directory until all files inside are tracked.