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>
This commit is contained in:
Robin Rosenberg 2011-05-03 01:13:21 +02:00
parent 98b019f4bd
commit e2413ce2f6
1 changed files with 1 additions and 2 deletions

View File

@ -162,8 +162,7 @@ public Ref call() throws IOException {
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(