]> source.dussan.org Git - jgit.git/commit
Add MutableObjectId.copyFrom(AnyObjectId) 22/922/2
authorShawn O. Pearce <spearce@spearce.org>
Tue, 22 Jun 2010 23:42:29 +0000 (16:42 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 23 Jun 2010 23:54:15 +0000 (16:54 -0700)
commit066df3d1a14c3317273fe56a60948bff2edee8dc
treeb11bfb0a0fb63c3357589d5a40ca7150ff8f1b42
parent677b9b17e289bcce645b03986cee1e8b30f688ec
Add MutableObjectId.copyFrom(AnyObjectId)

This simplifies the PackIndex code, which is trying to quickly copy
an existing ObjectId into a MutableObjectId.  Rather than having
the PackIndex violate the ObjectId's internals, expose a copy from
function similar to the other ones for copying from raw byte arrays
or hex formatted strings.

Change-Id: I142635cbece54af2ab83c58477961ce925dc8255
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/lib/MutableObjectId.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/PackIndex.java