aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm
diff options
context:
space:
mode:
authorColby Ranger <cranger@google.com>2012-08-27 16:08:42 -0700
committerColby Ranger <cranger@google.com>2013-03-04 14:43:22 -0800
commitbe7a135e94d9c71da3e9cd28edfd10ba7be3747d (patch)
tree81b568ea51d6ff687149c9c6173263796508147f /org.eclipse.jgit.pgm
parent8d4f227c138bf3ccf13cf83ab63fde2fc49d3756 (diff)
downloadjgit-be7a135e94d9c71da3e9cd28edfd10ba7be3747d.tar.gz
jgit-be7a135e94d9c71da3e9cd28edfd10ba7be3747d.zip
Break the dependency on RevObject when creating a newObjectToPack().
Update the ObjectReuseAsIs API to support creating new ObjectToPack with only the AnyObjectId and Git object type. This is needed to support the future pack index bitmaps, which only contain this information and do not want the overhead of creating a temporary object for every ObjectId. Change-Id: I906360b471412688bf429ecef74fd988f47875dc
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/ShowPackDelta.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/ShowPackDelta.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/ShowPackDelta.java
index 338929a1ba..837ca2cb1f 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/ShowPackDelta.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/ShowPackDelta.java
@@ -94,7 +94,7 @@ class ShowPackDelta extends TextBuiltin {
throws IOException, MissingObjectException,
StoredObjectRepresentationNotAvailableException {
ObjectReuseAsIs asis = (ObjectReuseAsIs) reader;
- ObjectToPack target = asis.newObjectToPack(obj);
+ ObjectToPack target = asis.newObjectToPack(obj, obj.getType());
PackWriter pw = new PackWriter(reader) {
@Override