From fcc3349cfcd9b3f3c538d2fb81f67d1fcd6af88d Mon Sep 17 00:00:00 2001 From: Chris Aniszczyk Date: Wed, 22 Sep 2010 10:47:44 -0500 Subject: [PATCH] Add reflog message to TagCommand Ensure we update the reflog when tagging. Change-Id: I3f4a4d68cbfc62d2276e3a47e3e3720f02cb2522 Signed-off-by: Chris Aniszczyk --- org.eclipse.jgit/src/org/eclipse/jgit/api/TagCommand.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/TagCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/TagCommand.java index 27248529f..45b0ca4ed 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/TagCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/TagCommand.java @@ -145,6 +145,7 @@ public class TagCommand extends GitCommand { 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: