]> source.dussan.org Git - jgit.git/commit
Fix RevertCommand to correctly revert multiple commits at once. 26/30026/3
authorMaik Schreiber <blizzy@blizzy.de>
Thu, 19 Jun 2014 10:54:14 +0000 (12:54 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 30 Jul 2014 14:20:08 +0000 (16:20 +0200)
commit7ff1e0d8f56dda85ba2a2224126a1075bda1bcf2
tree53d7f37d3a5ba52402cc5213aa661d0a5e438d09
parent7b0ee393ba1b5b99aa89c92bb841ef057c2aaa02
Fix RevertCommand to correctly revert multiple commits at once.

The fix is to move the new head commit to the newly-created revert
commit, so that additional revert commits will use the correct head.

Change-Id: I5de3a9a2a4c276e60af732e9c507cbbdfd1a4652
Signed-off-by: Maik Schreiber <blizzy@blizzy.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/RevertCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/RevertCommand.java