From 65027d8bb429581635f51d0c588493e5c458cc25 Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Fri, 29 Mar 2013 23:59:21 +0100 Subject: Indicate initial commit on a branch in the reflog Bug: 393463 Change-Id: I4733d6f719bc0dc694e7a6a6ad2092de6364898c --- org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'org.eclipse.jgit/src') diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java index 26a64ebcfc..1f68a7df2c 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java @@ -228,7 +228,8 @@ public class CommitCommand extends GitCommand { ru.setRefLogMessage(reflogComment, false); } else { String prefix = amend ? "commit (amend): " //$NON-NLS-1$ - : "commit: "; + : parents.size() == 0 ? "commit (initial): " + : "commit: "; ru.setRefLogMessage( prefix + revCommit.getShortMessage(), false); } -- cgit v1.2.3