From 22b285695a2980824c15363ef5fec709ebc3d434 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Mon, 23 Aug 2010 09:46:14 -0700 Subject: Rename Commit, Tag to CommitBuilder, TagBuilder Since these types no longer support reading, calling them a Builder is a better description of what they do. They help the caller to build a commit or a tag object. Change-Id: I53cae5a800a66ea1721b0fe5e702599df31da05d Signed-off-by: Shawn O. Pearce --- org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Tag.java | 4 +++- .../src/org/eclipse/jgit/pgm/debug/RebuildCommitGraph.java | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'org.eclipse.jgit.pgm/src') diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Tag.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Tag.java index df986a88bc..0ab19b6bb9 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Tag.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Tag.java @@ -93,7 +93,9 @@ class Tag extends TextBuiltin { final ObjectInserter inserter = db.newObjectInserter(); final ObjectId id; try { - org.eclipse.jgit.lib.Tag tag = new org.eclipse.jgit.lib.Tag(); + final org.eclipse.jgit.lib.TagBuilder tag; + + tag = new org.eclipse.jgit.lib.TagBuilder(); tag.setObjectId(object, ldr.getType()); tag.setTagger(new PersonIdent(db)); tag.setMessage(message.replaceAll("\r", "")); diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/RebuildCommitGraph.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/RebuildCommitGraph.java index e0a7433564..ab44128713 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/RebuildCommitGraph.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/RebuildCommitGraph.java @@ -58,7 +58,7 @@ import java.util.Map; import org.eclipse.jgit.errors.MissingObjectException; import org.eclipse.jgit.errors.ObjectWritingException; -import org.eclipse.jgit.lib.Commit; +import org.eclipse.jgit.lib.CommitBuilder; import org.eclipse.jgit.lib.Constants; import org.eclipse.jgit.lib.ObjectId; import org.eclipse.jgit.lib.ObjectIdRef; @@ -191,7 +191,7 @@ class RebuildCommitGraph extends TextBuiltin { } } - final Commit newc = new Commit(); + final CommitBuilder newc = new CommitBuilder(); newc.setTreeId(emptyTree); newc.setAuthor(new PersonIdent(me, new Date(t.commitTime))); newc.setCommitter(newc.getAuthor()); -- cgit v1.2.3