Add MutableObjectId.clear() to set the id to zeroId
commit0b64d6ea5df947ffd0443fe78661c21c086c885e
authorShawn O. Pearce <spearce@spearce.org>
Thu, 25 Dec 2008 02:10:58 +0000 (24 18:10 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 4 Jan 2009 00:01:52 +0000 (4 01:01 +0100)
treee23182d2838b4a5857f238898beee888a1b4d033
parentedbd75dd18b6fe184277795331450ed1ea09ad8c
Add MutableObjectId.clear() to set the id to zeroId

This makes it easier to set any MutableObjectId to the same value
as the zeroId.  Its logical to ask for a ".clear()" invocation when
you are writing application code, and its more efficient for the
JIT if we do 5 zero writes then to perform a copy from the zeroId
singleton.

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/MutableObjectId.java