Use PackedObjectInfo as a base class for PackWriter's ObjectToPack
commitb9608d1df7104259a2c991fb99f6884a09a45c87
authorShawn O. Pearce <spearce@spearce.org>
Sun, 29 Jun 2008 07:59:13 +0000 (29 03:59 -0400)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 30 Jun 2008 22:46:21 +0000 (1 00:46 +0200)
tree82c9882cb06bd449d2e39f072ad7b45b8ff10d7c
parent5607fd5edb4a7d2815d0ea1ad0aceb3605146078
Use PackedObjectInfo as a base class for PackWriter's ObjectToPack

The ObjectId and offset portions of PackedObjectInfo are also
needed by ObjectToPack.  By sharing the same base class with
IndexPack we can later abstract the index writing function out
and use it inside of both IndexPack and PackWriter.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/lib/PackWriter.java