Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Resolve conflict without changes(Resolve conflict without changes)
Resolve conflict without changes [message #1699941] Mon, 29 June 2015 12:32 Go to next message
Fábio Silva is currently offline Fábio SilvaFriend
Messages: 18
Registered: December 2014
Junior Member
I'm trying to fix a (supposedly) simple problem. I have a file in conflict and to fix it I change its content, add it to index and then commit the changes. It works nicely when there are real changes. But when I want to keep my file content untouched it doesn't work. If I just remove the conflict marks, Jgit throws this exception:
org.eclipse.jgit.api.errors.JGitInternalException: No changes


What am I doing wrong?
Re: Resolve conflict without changes [message #1699994 is a reply to message #1699941] Mon, 29 June 2015 14:40 Go to previous message
Fábio Silva is currently offline Fábio SilvaFriend
Messages: 18
Registered: December 2014
Junior Member
Just to be clear: the same issue occurs in Eclipse. Just follow these steps:

1 - checkout a project;
2 - make a simple change and commit it;
3 - make a remote change that conflicts with the local one;
4- run the pull command to get the remote change;
5 - run the merge tool. It does nothing if you don't change anything, so make a change like cut and paste the same piece of code;
6 - save the file and add it to index;
7 - try to commit the file. Eclipse won't list it, since there is no real change, but it should have a change to represent the "marged" state;
8 - try to push to upstream. Now you have a "MERGING_STATE" issue to deal with.

What's wrong with these steps?

[Updated on: Mon, 29 June 2015 14:41]

Report message to a moderator

Previous Topic:Commit compare layout issues
Next Topic:Project layout to avoid full rebuild after switching branches
Goto Forum:
  


Current Time: Fri Apr 26 03:08:47 GMT 2024

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

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

Back to the top