From: Shawn O. Pearce Date: Fri, 9 Jul 2010 00:19:20 +0000 (-0700) Subject: Add doNotDelta flag to ObjectToPack X-Git-Tag: v0.9.1~157^2~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=823e9a972100ad197fcb40efb37e1ca33f4bdb01;p=jgit.git Add doNotDelta flag to ObjectToPack This flag will later control whether or not PackWriter search for a delta base for this object. Edge objects will never get searched, as the writer won't be outputting them, so they should always have this flag set on. Sometime in the future this flag should also be set for file blobs on file paths that have the "-delta" gitattribute set in the repository's attributes file. Change-Id: I6e518e1a6996c8ce00b523727f1b605e400e82c6 Signed-off-by: Shawn O. Pearce --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/ObjectToPack.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/ObjectToPack.java index cad3aaeec7..4016e92c9d 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/ObjectToPack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/ObjectToPack.java @@ -61,6 +61,8 @@ public class ObjectToPack extends PackedObjectInfo { private static final int REUSE_AS_IS = 1 << 1; + private static final int DO_NOT_DELTA = 1 << 2; + private static final int TYPE_SHIFT = 5; private static final int DELTA_SHIFT = 8; @@ -75,7 +77,8 @@ public class ObjectToPack extends PackedObjectInfo { *