Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Commit/amend not possible(Merge commit is not possible if nothing is changed comparing to last local commit)
Commit/amend not possible [message #968531] Fri, 02 November 2012 14:32 Go to next message
Eugene Kondrashev is currently offline Eugene KondrashevFriend
Messages: 8
Registered: January 2012
Junior Member
Hi all,

I'm experiencing some unexpected behavior while performing merge through "Team Synchronizing" perspective.

Initial data:
/a_repo/
├── .git
├── 1.txt

All actions with A repository is done through the command line.
All actions with B repository is done through egit UI. Exception is cherry pick operation which is done with jgit(or command line).

Consider such scenario:

1. There is none-bare A repository
2. Perform initial commit to A - A contains AC1
2. Clone B from A, so A is a remote repository for B - B contains AC1
3. Perform another commit to A, changing 1.txt - A contains AC1-AC2
4. Cherry-pick AC2 to B (with console or jgit) - B contains AC1-AC2'
5. Perform commit to B, changing 1.txt - B contains AC1-AC2'-BC3
6. Click Team->Synchronize Workspace

7. Synchronize view shows that there are two outgoing commits pending(AC2', BC3) and one incoming(AC2).
8. Click "Pull" - egit shows "Merged master |2|1" status for B repository
9. Resolve conflicts for 1.txt file, leaving HEAD version.
10 Click "Add to Index" against 1.txt - egit shows "Conflicts master |2|1" status for B repository
11. Try to commit merge commit - got "Commit/amend not possible" message


Note:
If I leave origin/master version of 1.txt, I can successfully perform commit after adding resolved file to index.

My guess that egit doesn't allow to perform merge commit if nothing is changed comparing to last local commit, which is my case as I'm leaving HEAD version. But I do need to perform merge commit, to be able to push to A.

So why I'm not able to perform merge commit, after leaving HEAD version of a file?

Any comments appreciated.

Thanks,
Eugene



[Updated on: Mon, 12 November 2012 12:59]

Report message to a moderator

Re: Commit/amend not possible [message #981484 is a reply to message #968531] Mon, 12 November 2012 12:58 Go to previous message
Eugene Kondrashev is currently offline Eugene KondrashevFriend
Messages: 8
Registered: January 2012
Junior Member
Are there any ideas regarding this?

I'm pretty sure that this is a defect, could someone point me whom should I address this question to?

Thanks,
Eugene
Previous Topic:Move local git repository
Next Topic:Reduce walk memory usage
Goto Forum:
  


Current Time: Thu Apr 25 22:53:24 GMT 2024

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

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

Back to the top