Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Replace with HEAD Revision does not work
Replace with HEAD Revision does not work [message #1140356] Wed, 16 October 2013 09:48 Go to next message
Flavio Donze is currently offline Flavio DonzeFriend
Messages: 160
Registered: July 2009
Location: Switzerland
Senior Member
Hello

Sometimes when I want to revert my changes on a file, EGit still marks the file as changed. The strange thing is that sometimes it works fine.

I rightclick on the changed file and choose "Replace With" => "HEAD Revision". The changes are then reverted but the file is still marked as "changed".

My local branch is set to "master" and is in synch with the remote tracking branch "origin/master".

I'm running on Windows 7, Eclipse 4.3.1, EGit 3.1.0.
core.autocrlf is true
Preferences => General => Compare/Patch => Ignore white space (checkbox enabled).

Is there a better way to revert changes on files (not the whole repository)?
Is this a bug, should I create an issue?

greets
Flavio


Organisations- und Prozessdokumentation Software
Qualit├Ąt Management QMS :: Information Management IMS
http://www.scodi.ch
Re: Replace with HEAD Revision does not work [message #1240010 is a reply to message #1140356] Wed, 05 February 2014 14:17 Go to previous messageGo to next message
Mike Meessen is currently offline Mike MeessenFriend
Messages: 1
Registered: February 2014
Junior Member
I'm having the same issue here (same environment, same settings). Any new findings on it??
Re: Replace with HEAD Revision does not work [message #1240082 is a reply to message #1240010] Wed, 05 February 2014 16:59 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 612
Registered: July 2009
Senior Member
If core.autocrlf is set to true you may suffer from https://bugs.eclipse.org/bugs/show_bug.cgi?id=372834
Try the egit nightly build which contains a fix solving this bug. You can install it from http://download.eclipse.org/egit/updates-nightly
Previous Topic:Automatic maintenance of application server side repository
Next Topic:Does EGit support the double asterisk in .gitignore files
Goto Forum:
  


Current Time: Fri Nov 21 10:43:59 GMT 2014

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

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