Allow RefLock to be used for other files
commit1b4e80e9166bb57f937f8b8687f569b8526a60bc
authorShawn O. Pearce <spearce@spearce.org>
Thu, 17 May 2007 00:08:45 +0000 (16 20:08 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 17 May 2007 00:08:45 +0000 (16 20:08 -0400)
tree75e50703f4c615cf361606f719809e14c1fb0936
parentccd40493936b663280ed95742a6b3e05701f351e
Allow RefLock to be used for other files

When we create a symbolic-ref (for example) we want to use the same
locking system as we do for normal refs, as that is what core Git does,
and its just nice to reuse code that is already thought to be stable.

Here I'm just exposing the constructor to allow creation of a RefLock
against any file path, not just one that is a Ref.

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