]> source.dussan.org Git - jgit.git/commit
Simplify LockFile write(ObjectId) case 82/1882/1
authorShawn O. Pearce <spearce@spearce.org>
Wed, 10 Nov 2010 03:12:24 +0000 (19:12 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 10 Nov 2010 03:13:13 +0000 (19:13 -0800)
commitcfa3f365d6e526a10aa80004c7291cf1c89fbb0e
treec443a48f5931717a7da31c10055a8c80c1647e03
parent17b1003ff221a7ab7d8ef749e15e1a753efd6109
Simplify LockFile write(ObjectId) case

The ObjectId (for a ref) can be easily reformatted into a temporary
byte[] and then passed off to write(byte[]), removing the duplicated
code that existed in both write methods.

Change-Id: I09740658e070d5f22682333a2e0d325fd1c4a6cb
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java