]> source.dussan.org Git - jgit.git/commitdiff
Expose getType in ObjectToPack 16/1216/3
authorShawn O. Pearce <spearce@spearce.org>
Thu, 29 Jul 2010 23:59:40 +0000 (16:59 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 21 Aug 2010 00:41:27 +0000 (17:41 -0700)
Storage implementations may find this useful when implementing the
ObjectReuseAsIs interface on their ObjectReader.  Expose it so we
don't force them to create a redundant copy of the information.

Change-Id: I802ec8113c00884fccde5d0e92b9849716316f62
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/ObjectToPack.java

index 70188a3803911405caa176e575e3c25279ad33a1..3161668be5eca116d7dba6f27b65d34e0de73964 100644 (file)
@@ -192,7 +192,8 @@ public class ObjectToPack extends PackedObjectInfo {
                return getOffset() != 0;
        }
 
-       int getType() {
+       /** @return the type of this object. */
+       public int getType() {
                return (flags >> TYPE_SHIFT) & 0x7;
        }