]> source.dussan.org Git - jgit.git/commit
Make supportsAtomicCreateNewFile return true as default 74/140274/10
authorVishal Devgire <vishaldevgire@gmail.com>
Tue, 9 Apr 2019 07:31:36 +0000 (13:01 +0530)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 12 Aug 2019 12:35:06 +0000 (14:35 +0200)
commit9b4a55c0b65074e6abec4b9aff1b602ee6a976b9
tree669ef6818029d8b69e4d43f26bd31064672e9380
parent4d46a68abee7a59bba7c5d85b5ad90206bc1d757
Make supportsAtomicCreateNewFile return true as default

The method org.eclipse.jgit.util.FS.supportsAtomicCreateNewFile()
should default to true as mentioned in docs [1]

org.eclipse.jgit.util.FS_POSIX.supportsAtomicCreateNewFile() method
will set the value to false if the git config
core.supportsatomiccreatenewfile is not set.

It should default to true if the configuration is undefined.

[1]
https://github.com/eclipse/jgit/blob/4169a95a65683e39e7a6a8f2b11b543e2bc754db/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java#L372

Bug: 544164
Change-Id: I16ccf989a89da2cf4975c200b3228b25ba4c0d55
Signed-off-by: Vishal Devgire <vishaldevgire@gmail.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/META-INF/MANIFEST.MF
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FS_POSIXTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java