]> source.dussan.org Git - jgit.git/commit
Support core.fsyncRefFiles option 84/1884/2
authorShawn O. Pearce <spearce@spearce.org>
Thu, 11 Nov 2010 01:24:16 +0000 (17:24 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 12 Nov 2010 21:38:04 +0000 (13:38 -0800)
commite0e7fe531d08676ce13308bf2bfda809d866ed01
tree10d557b508fc523177cdb3a774e81fdf557e35cb
parent24fccadeda0a323d9b438dafab33f44491bb15d9
Support core.fsyncRefFiles option

If core.fsyncRefFiles is set to true, fsync is used whenever a
reference file is updated, ensuring the file contents are also
written to disk.  This can help to prevent empty ref files after
a system crash when using a filesystem such as HFS+ where data
writes may be delayed.

Change-Id: Ie508a974da50f63b0409c38afe68772322dc19f1
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/RefDirectory.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/RefDirectoryUpdate.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/WriteConfig.java