Allow application code to set ObjectIds in DirCacheEntry
commit219ce47ed7f356cd20bbba1c4c042ba1c8791ba1
authorShawn O. Pearce <spearce@spearce.org>
Mon, 18 Aug 2008 23:53:20 +0000 (18 16:53 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 20 Aug 2008 21:08:19 +0000 (20 23:08 +0200)
treec9da05d2074a140683514ccd4bfb0eff797b308a
parente24a048486ca781c94c87a50474f6dcedbd205ab
Allow application code to set ObjectIds in DirCacheEntry

We support setting the ObjectId both from AnyObjectId (as we copy it)
and from a raw byte[] (as we are really copying into a raw byte[]).
The latter form is the most efficient as it probably permits callers
to avoid unnecessary conversion to some form of AnyObjectId.

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/dircache/DirCacheEntry.java