]> source.dussan.org Git - jgit.git/commit
Add ObjectId getByte for random access 47/1847/2
authorShawn O. Pearce <spearce@spearce.org>
Tue, 2 Nov 2010 23:29:39 +0000 (16:29 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 5 Nov 2010 02:12:13 +0000 (19:12 -0700)
commitb22a4e84886e7388d509376be9afce31833de054
treeda0ef3130723dedd718cab41a0edaf9682a33cd9
parentc27e1daa55255416d93e3a019f556f0ca90fd410
Add ObjectId getByte for random access

Processing git notes requires random access to part of the raw data
of each ObjectId... which isn't easy because ObjectIds are stored
with an internal representation of 5 ints.  Expose random access
to the individual data bytes through new methods, avoiding the
need to convert first to a byte[20].

Change-Id: I99e64700b27fc0c95aa14ef8ad46a0e8832d4441
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ObjectIdTest.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0001_ObjectId.java [deleted file]
org.eclipse.jgit/src/org/eclipse/jgit/lib/AnyObjectId.java