]> source.dussan.org Git - jgit.git/commit
RefDirectory: Use FileSnapshot for packed-refs 18/2118/4
authorShawn O. Pearce <spearce@spearce.org>
Mon, 13 Dec 2010 21:41:19 +0000 (13:41 -0800)
committerChris Aniszczyk <caniszczyk@gmail.com>
Fri, 1 Apr 2011 22:49:09 +0000 (17:49 -0500)
commitc261b28f677fdc755b86d16abebd2c30093514b4
tree1ad00a68d59236a1a8f3231b12de2eefb3d89e92
parent58ed0cb840b29139483ce3b499354a6e5669498b
RefDirectory: Use FileSnapshot for packed-refs

Instead of tracking the length and modification time by hand, rely
on FileSnapshot to tell RefDirectory when the $GIT_DIR/packed-refs
file has been changed or should be re-read from disk.

Change-Id: I067d268dfdca1d39c72dfa536b34e6a239117cc3
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/RefDirectoryTest.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileSnapshot.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/RefDirectory.java