]> source.dussan.org Git - jgit.git/commit
FileBasedConfig: Use FileSnapshot for isOutdated() 17/2117/3
authorShawn O. Pearce <spearce@spearce.org>
Mon, 13 Dec 2010 22:19:02 +0000 (14:19 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 15 Dec 2010 23:14:05 +0000 (15:14 -0800)
commit3922e026e006ad738bf66b8b3b1afc59f9b004ae
tree1bb1339250b3c6b8d05ffe8ac83431b63e8736b6
parentc8db22f35531c42fcbb82c0235dcb50a108c74f5
FileBasedConfig: Use FileSnapshot for isOutdated()

Relying only on the last modified time for a file can be tricky.
The "racy git" problem may cause some modifications to be missed.

Use the new FileSnapshot code to track when a configuration file
has been modified, and needs to be reloaded in memory.

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