Add reflog message to TagCommand

Ensure we update the reflog when tagging.

Change-Id: I3f4a4d68cbfc62d2276e3a47e3e3720f02cb2522
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
This commit is contained in:
Chris Aniszczyk 2010-09-22 10:47:44 -05:00
parent e84d826eb6
commit fcc3349cfc
1 changed files with 1 additions and 0 deletions

View File

@ -145,6 +145,7 @@ public RevTag call() throws JGitInternalException,
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: