开发者

What does the brown asterisk icon on a file mean in Eclipse?

开发者_如何学运维

I am using the git plugin for Eclipse. Some of my files are marked with a brown asterisk. What does it mean? Where can I find documentation for what the rest of the git icons mean in Eclipse?

What does the brown asterisk icon on a file mean in Eclipse?


This page should give you a good rundown of what the icons mean for GIT in eclipse

A quoted summary:

What does the brown asterisk icon on a file mean in Eclipse?

dirty (folder) - At least one file below the folder is dirty; that means that it has changes in the working tree that are neither in the index nor in the repository.

tracked - The resource is known to the Git repository.

untracked - The resource is not known to the Git repository.

ignored - The resource is ignored by the Git team provider. Here only the preference settings under Team -> Ignored Resources and the "derived" flag are relevant. The .gitignore file is not taken into account.

dirty - The resource has changes in the working tree that are neither in the index nor in the repository.

staged - The resource has changes which are added to the index. Not that adding to the index is possible at the moment only on the commit dialog on the context menu of a resource.

partially-staged - The resource has changes which are added to the index and additionally changes in the working tree that are neither in the index nor in the repository.

added - The resource is not yet tracked by but added to the Git repository.

removed - The resource is staged for removal from the Git repository.

conflict - A merge conflict exists for the file.

assume-valid - The resource has the "assume unchanged" flag. This means that Git stops checking the working tree files for possible modifications, so you need to manually unset the bit to tell Git when you change the working tree file. This setting can be switched on with the menu action Team->Assume unchanged (or on the command line with git update-index --assume-unchanged).


I'm not familiar with git, but when using svn with Eclipse, the white star on the brown square means you have made changes to the file since the last time you updated it. The gold cylinder, on the other hand, means you have not made changes so the local file is identical to the repository version. So it must mean something that is roughly equivalent to that in git.


Eclipse icons list:

1- JDT icons

2- main icons

3- Eclipse user interface guideline

4- GIT Label Decorations


This means that you've changed something in a file in your workspace but not pushed your changes to the master repository.


This issue is actually related to GIT, so try other ways if nothing works: backup your code and just clone the project once again and start working on it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜