]> source.dussan.org Git - jgit.git/commit
Update the revert command and things relating to revert 54/8354/6
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Tue, 23 Oct 2012 22:48:31 +0000 (00:48 +0200)
committerChris Aniszczyk <zx@twitter.com>
Fri, 28 Dec 2012 22:44:46 +0000 (16:44 -0600)
commit315f1cfa5c63f4d3355704c80d00ac1323a36171
tree97243a3d4d5b9b3c4d3fb2e216716d69cfb03975
parent75eb6a147ffa8089e48d409f0215a16c755305e7
Update the revert command and things relating to revert

Cherry-pick has been fixed, but even though revert does
basically the same thing, the fixes were not carried over here.

- Recognize the revert-states, analogous to the cherry picking states
- Make reset handle a revert-in-progress
- Update REVERT_HEAD and MERGE_MSG when revert fails due to conflicts
- Clear revert state on commit and reset
- Format the message similarily to how cherry-pick does. This is
  not exactly how C Git does it.

The interface is still not the same as for cherry-picking.

Change-Id: I8ea956fcbc9526d62a2365360feea23a9280eba3
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/RevertCommandTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/ResetCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/RevertCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryState.java