From 39ad503fcb0c293e9c6d47d653a0d52456d4760b Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Thu, 8 Sep 2011 18:35:17 +0200 Subject: [PATCH] Append merge strategy to reflog message Change-Id: Ia0e73208b86c45a3d96698e973f6e70ec5cb7303 Signed-off-by: Robin Rosenberg Signed-off-by: Matthias Sohn --- org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java index a9f78c076..c7a30ebe1 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java @@ -210,7 +210,9 @@ public class MergeCommand extends GitCommand { unmergedPaths = resolveMerger.getUnmergedPaths(); } else noProblems = merger.merge(headCommit, srcCommit); - + refLogMessage.append(": Merge made by "); + refLogMessage.append(mergeStrategy.getName()); + refLogMessage.append('.'); if (noProblems) { DirCacheCheckout dco = new DirCacheCheckout(repo, headCommit.getTree(), repo.lockDirCache(),