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.pgm | |
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.pgm')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Reflog.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Reflog.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Reflog.java index e2797bd5a0..a09bb11fde 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Reflog.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Reflog.java @@ -48,7 +48,6 @@ import org.eclipse.jgit.api.Git; import org.eclipse.jgit.api.ReflogCommand;
import org.eclipse.jgit.internal.storage.file.ReflogEntry;
import org.eclipse.jgit.lib.Constants;
-import org.eclipse.jgit.lib.ObjectId;
import org.eclipse.jgit.lib.Repository;
import org.kohsuke.args4j.Argument;
@@ -77,12 +76,7 @@ class Reflog extends TextBuiltin { s.append(ref == null ? Constants.HEAD : Repository.shortenRefName(ref));
s.append("@{" + i + "}:"); //$NON-NLS-1$ //$NON-NLS-2$
s.append(" "); //$NON-NLS-1$
- // temporary workaround for bug 393463
- if (entry.getOldId().equals(ObjectId.zeroId()))
- s.append(entry.getComment().replaceFirst("^commit:", //$NON-NLS-1$
- "commit (initial):")); //$NON-NLS-1$
- else
- s.append(entry.getComment());
+ s.append(entry.getComment());
return s.toString();
}
}
|