Use getCachedBytes in ObjectLoader.getId when computing the ObjectId
commitce149daa74a811b45fb8946ed491fcfa1e4b5f15
authorShawn O. Pearce <spearce@spearce.org>
Sun, 11 May 2008 17:55:45 +0000 (11 13:55 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 11 May 2008 19:12:40 +0000 (11 15:12 -0400)
tree13594751efba379c13969ffe62d685276fb9397d
parentc872a40765c6618fb634183818d4ee65f02dd631
Use getCachedBytes in ObjectLoader.getId when computing the ObjectId

If the ObjectId is not yet known we only need the data in order to
read it into a MessageDigest.  There is no point in copying data,
we can instead rely on the cached byte[].

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/ObjectLoader.java