diff options
author | Robin Rosenberg <robin.rosenberg@dewire.com> | 2013-03-29 23:59:21 +0100 |
---|---|---|
committer | Robin Rosenberg <robin.rosenberg@dewire.com> | 2013-04-02 21:57:17 +0200 |
commit | 65027d8bb429581635f51d0c588493e5c458cc25 (patch) | |
tree | 506fba571e45a8429acae393706bd9a714f3cf1f /org.eclipse.jgit | |
parent | 4796fe70432d882f1d51d9fec59c111107be44f8 (diff) | |
download | jgit-65027d8bb429581635f51d0c588493e5c458cc25.tar.gz jgit-65027d8bb429581635f51d0c588493e5c458cc25.zip |
Indicate initial commit on a branch in the reflog
Bug: 393463
Change-Id: I4733d6f719bc0dc694e7a6a6ad2092de6364898c
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java | 3 |
1 files changed, 2 insertions, 1 deletions
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<RevCommit> { 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); } |