Browse Source

Expose getType in ObjectToPack

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>
stable-0.9
Shawn O. Pearce 14 years ago
parent
commit
109c695936
  1. 3
      org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/ObjectToPack.java

3
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/ObjectToPack.java

@ -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;
}

Loading…
Cancel
Save