Bug 488253 - Show whether there are untracked files in subdirectory
Summary: Show whether there are untracked files in subdirectory
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 4.0.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-22 15:06 EST by Benjamin 1002t CLA
Modified: 2016-02-22 16:45 EST (History)
1 user (show)

See Also:


Attachments
screenshot, jgit repository with one new untracked class org.eclipse.jgit.api.A.java (231.24 KB, image/png)
2016-02-22 16:15 EST, Matthias Sohn CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin 1002t CLA 2016-02-22 15:06:29 EST
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.
Comment 1 Matthias Sohn CLA 2016-02-22 16:12:42 EST
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.
Comment 2 Matthias Sohn CLA 2016-02-22 16:15:04 EST
Created attachment 259871 [details]
screenshot, jgit repository with one new untracked class org.eclipse.jgit.api.A.java
Comment 3 Benjamin 1002t CLA 2016-02-22 16:45:04 EST
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.