]> source.dussan.org Git - jgit.git/commitdiff
Present reset in the reflog like C Git does nowadays 28/3328/1
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 2 May 2011 23:13:21 +0000 (01:13 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Tue, 3 May 2011 22:31:32 +0000 (00:31 +0200)
Confirmed for v1.7.4.1

Change-Id: I4f1c3cd6b2cf543be213f061afb94223062dde51
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.eclipse.jgit/src/org/eclipse/jgit/api/ResetCommand.java

index 24aae22ffd1a8b74f68c020b83a67fa10f96810d..1ddfd6d77a2d7456c839454003f16aadd6570e7a 100644 (file)
@@ -162,8 +162,7 @@ public class ResetCommand extends GitCommand<Ref> {
                        ru.setNewObjectId(commitId);
 
                        String refName = Repository.shortenRefName(ref);
-                       String message = "reset --" //$NON-NLS-1$
-                                       + mode.toString().toLowerCase() + " " + refName; //$NON-NLS-1$
+                       String message = refName + ": updating " + Constants.HEAD; //$NON-NLS-1$
                        ru.setRefLogMessage(message, false);
                        if (ru.forceUpdate() == RefUpdate.Result.LOCK_FAILURE)
                                throw new JGitInternalException(MessageFormat.format(