Define a more powerful RefUpdate utlity
commit5168ced1812d879591df2e830c2993dce09dd09f
authorShawn O. Pearce <spearce@spearce.org>
Sun, 27 Apr 2008 23:41:38 +0000 (27 19:41 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 11 May 2008 05:16:32 +0000 (11 01:16 -0400)
treedee4a59fd00c93e2aa1ec5ba501f3b42ec232267
parent8ed9d2e983bdb6643f3cd21b03786d94266e0e11
Define a more powerful RefUpdate utlity

Some application level code (e.g. push or fetch) require updating a
ref safely, including performing fast-forward tests while the ref
is locked.  This logic is now wrapped up inside of RefUpdate and the
application code can get one of these instead of a LockFile from the
Repository class.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/RefUpdate.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java