summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2011-05-03 01:13:21 +0200
committerRobin Rosenberg <robin.rosenberg@dewire.com>2011-05-04 00:31:32 +0200
commite2413ce2f65b965a706621b50865cfda8c395c4f (patch)
tree9d786096c91a06e074d3d1ce14ea080ccfe30e8f
parent98b019f4bdc45bd122e4d81009c4e814350e051c (diff)
downloadjgit-e2413ce2f65b965a706621b50865cfda8c395c4f.tar.gz
jgit-e2413ce2f65b965a706621b50865cfda8c395c4f.zip
Present reset in the reflog like C Git does nowadays
Confirmed for v1.7.4.1 Change-Id: I4f1c3cd6b2cf543be213f061afb94223062dde51 Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/ResetCommand.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/ResetCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/ResetCommand.java
index 24aae22ffd..1ddfd6d77a 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/ResetCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/ResetCommand.java
@@ -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(