Browse Source

Add reflog message to TagCommand

Ensure we update the reflog when tagging.

Change-Id: I3f4a4d68cbfc62d2276e3a47e3e3720f02cb2522
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
stable-0.10
Chris Aniszczyk 14 years ago
parent
commit
fcc3349cfc
  1. 1
      org.eclipse.jgit/src/org/eclipse/jgit/api/TagCommand.java

1
org.eclipse.jgit/src/org/eclipse/jgit/api/TagCommand.java

@ -145,6 +145,7 @@ public class TagCommand extends GitCommand<RevTag> {
RefUpdate tagRef = repo.updateRef(refName);
tagRef.setNewObjectId(tagId);
tagRef.setForceUpdate(forceUpdate);
tagRef.setRefLogMessage("tagged " + name, false);
Result updateResult = tagRef.update(revWalk);
switch (updateResult) {
case NEW:

Loading…
Cancel
Save