Replace IndexPack writeUInt32 with NB.encodeInt32
commit38b8c0d741be1cc8f1ddcdc4fdc3a7696c4311d0
authorShawn O. Pearce <spearce@spearce.org>
Tue, 8 Apr 2008 03:35:55 +0000 (7 23:35 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 8 Apr 2008 07:26:06 +0000 (8 03:26 -0400)
treeddcb26a9d54e0d31604dd3ad79eeb942d7c3fb02
parentfc92129c2dba62da466c9d6f67299589f4a937a8
Replace IndexPack writeUInt32 with NB.encodeInt32

Since we already have a common function to write a 32 bit
unsigned (or signed) network byte order integer we do not
need to create our own in IndexPack.  Better to reuse the
code we already have.

Since rawoe is only used for the ObjectId values within
this loop we can instead pack it out an extra 4 spaces
and fill the entire index record into one byte array.

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