Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » assume unchanged
assume unchanged [message #576997] Wed, 27 January 2010 16:37 Go to next message
Clint Modien is currently offline Clint ModienFriend
Messages: 2
Registered: July 2009
Junior Member
So I inadvertently clicked the assume unchanged link on my whole project...

In order to undo this I had to run this command...

git update-index --really-refresh --no-assume-unchanged ./*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*

Maybe there should be a way to undo this from the plugin?
Re: assume unchanged [message #577060 is a reply to message #576997] Sat, 30 January 2010 23:52 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Add to Version Control has the side affect of clearing the assume-unchanged flag. Other than that, I agree that it should be possible to clear it without updating the index.
Re: assume unchanged [message #1819047 is a reply to message #577060] Mon, 06 January 2020 10:03 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1886
Registered: July 2009
Senior Member
I'm necro-ing this since I just did the exact same manipulation (misclicked in the "git staging" view so a file was flagged as "assume unchanged").

I believe it is extremely dangerous to leave such a command that readily available in the user interface of EGit, or there should at least be a confirmation dialog. Once the user has clicked on it, there is no UI that tells him "which" file has been flagged, or that a file was flagged in the first place. There is no UI to undo that change either. The command line will not show the file in either git status or git diff, so there is no readily available way to determine what has happened for the regular git user.

To make matters worse, the command from Clint above will not work on windows (bash: /mingw64/bin/git: Argument list too long). The user has to dig into the documentation of cgit to understand what that "assume unchanged" has done, and how to actually undo it.

For people who might make the same mistake in the future, you have to open a git terminal and use the following:

$ git ls-files -v|grep '^h'

This will list the files on which the "assume unchanged" flag is set. Then, on each of these files:

$ git update-index --no-assume-unchanged <FILE>

Laurent
Re: assume unchanged [message #1819146 is a reply to message #1819047] Wed, 08 January 2020 18:42 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1147
Registered: July 2009
Senior Member
EGit decorates files having this flag set with a blue check mark.
You can see and also customize decorations under "Preferences > Team > Git > Label Decorations".

You can undo the assumed unchanged flag using EGit, just select the same file/folder
where you clicked "Assume unchanged" and then click "No assume unchanged".

:-)
Previous Topic:Auto-create change-branch when pushing to gerrit
Next Topic:Failing to upload repo to github using eclipse 201912 -SSL protocol_version
Goto Forum:
  


Current Time: Sat Jul 04 03:49:02 GMT 2020

Powered by FUDForum. Page generated in 0.01455 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top