convert replaceFile to createDirectoryUnder
authorJoey Hess <joeyh@joeyh.name>
Fri, 6 Mar 2020 15:31:01 +0000 (11:31 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 6 Mar 2020 15:31:01 +0000 (11:31 -0400)
commiteaa49ab53d527b128cca8abe6d08ed21fecf77d5
tree929caf5459fa25d8b987229190680f0548a2f95d
parentb6c14a84abf155ceb12d0443cf8dff5fa840bf02
convert replaceFile to createDirectoryUnder

Since it was used on both worktree and .git/annex files, split into
multiple functions.

In passing, this also improves permissions of created directories in
.git/annex, using createAnnexDirectory on those.
12 files changed:
Annex/AutoMerge.hs
Annex/Content/PointerFile.hs
Annex/Ingest.hs
Annex/ReplaceFile.hs
Annex/WorkTree.hs
Assistant/Threads/Watcher.hs
Command/Fix.hs
Command/Fsck.hs
Command/Lock.hs
Command/ReKey.hs
Command/Unlock.hs
Logs/File.hs