Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Assume Unchanged files not appearing in EGit Staging View

Tags:

git

eclipse

egit

Is there a way to find the files I've set to 'Assume Unchanged'?

I've modified several files and wanted to pull, so I've set them to 'Assume Unchanged'. Now I'm finished and want to commit, but they don't appear in the Git Staging window.

I use Eclipse 4.4.2.

like image 694
KGBR Avatar asked Oct 14 '15 07:10

KGBR


2 Answers

Well, it's correct that they wouldn't appear in the staging view. From the git docs:

When the "assume unchanged" bit is on, the user promises not to change the file and allows Git to assume that the working tree file matches what is recorded in the index.

If you want to "re-track" changes, do git update-index --no-assume-unchanged <file>.

In Eclipse, this works as follows: Right-click on file > Team > Advanced > No Assume Unchanged. After having done this, the file will show up in the Unstaged Changed section of the Git Staging View.

like image 69
s.d Avatar answered Dec 29 '22 09:12

s.d


Files with assume-unchanged flag set are decorated with a little blue checkmark, see Preferences > Team > Label decorations

like image 27
Matthias Sohn Avatar answered Dec 29 '22 10:12

Matthias Sohn