Browse Source

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>
stable-1.0
Robin Rosenberg 14 years ago
parent
commit
e2413ce2f6
  1. 3
      org.eclipse.jgit/src/org/eclipse/jgit/api/ResetCommand.java

3
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(

Loading…
Cancel
Save