Teach LockFile how to read the current value from a loose ref
commitb5ca2861157561e5bf94d6400f44e3ffba75880f
authorShawn O. Pearce <spearce@spearce.org>
Sun, 27 Apr 2008 22:05:06 +0000 (27 18:05 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 11 May 2008 05:16:29 +0000 (11 01:16 -0400)
treed795d6379437b31c03c6aaa4f0c8b10c6c5fe816
parent8d69ae6a2a15f9f65cc76081579f0957a0545035
Teach LockFile how to read the current value from a loose ref

When updating a ref we sometimes need to read the current ObjectId
from the loose ref file, so we can be certain that later update
tests go against the value we might replace if the lock was to be
committed by the caller.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/LockFile.java