]> source.dussan.org Git - jgit.git/commit
Add MutableObjectId setByte to modify a mutable id 48/1848/2
authorShawn O. Pearce <spearce@spearce.org>
Thu, 4 Nov 2010 02:01:53 +0000 (19:01 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 5 Nov 2010 02:12:13 +0000 (19:12 -0700)
commite488f1cacd7813feaca9f7d7b09de7eb5ec69f84
tree7c0979c631e295dcb2e800454a7a8c086a910c59
parentb22a4e84886e7388d509376be9afce31833de054
Add MutableObjectId setByte to modify a mutable id

This mirrors the getByte() API in ObjectId and allows the caller to
modify a single byte, which is useful when updating it as part of a
loop walking through 0x00..0xff inside of a range of objects.

Change-Id: I57fa8420011fe5ed5fc6bfeb26f87a02b3197dab
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ObjectIdTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/MutableObjectId.java