Here’s the scenario:
I have a git project open in eclipse + egit (the git plugin) with a resource file called samples.xml.
I would like to remove samples.xml, but tell git to ignore the change. So I do the following:
rm samples.xml
git update-index --assume-unchanged samples.xml
This works fine and dandy on the command line. git status returns nothing.
In egit, I would expect the same as well. However, if I open the commit dialog, I get a line that reads Assume unchanged | <path_to_samples.xml>.
Why would this happen? If egit knows that it’s assume unchanged, why does it still display in the commit dialog? Is there a workaround for this?
Thanks,
Ken
You are misusing the
--assume-unchanged. It is meant to say to git that I won’t change this file, so don’t bother looking at ( so that you can perform better on some less than efficient filesystems ) Now, you say that, but you go ahead and rm it?With that said, since
git statusis respecting your delete, egit should do that as well, so probably you can raise this with egit developers and ask them if this was intentional.