summaryrefslogtreecommitdiff
path: root/Logs.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2021-01-06 14:11:08 -0400
committerJoey Hess <joeyh@joeyh.name>2021-01-06 14:15:19 -0400
commitcc896994572f19e0df77314c0cce7c3e88268322 (patch)
tree06dcd96d4a2d530c2c6b1b862bc2464ec517beac /Logs.hs
parent428d228ee5d3a6c5c9a8802285f2d3269049a5dd (diff)
mincopies
This is conceptually very simple, just making a 1 that was hard coded be exposed as a config option. The hard part was plumbing all that, and dealing with complexities like reading it from git attributes at the same time that numcopies is read. Behavior change: When numcopies is set to 0, git-annex used to drop content without requiring any copies. Now to get that (highly unsafe) behavior, mincopies also needs to be set to 0. It seemed better to remove that edge case, than complicate mincopies by ignoring it when numcopies is 0. This commit was sponsored by Denis Dzyubenko on Patreon.
Diffstat (limited to 'Logs.hs')
-rw-r--r--Logs.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Logs.hs b/Logs.hs
index c7cec22272..50b955420f 100644
--- a/Logs.hs
+++ b/Logs.hs
@@ -90,6 +90,7 @@ presenceLogs config f =
otherLogs :: [RawFilePath]
otherLogs =
[ numcopiesLog
+ , mincopiesLog
, groupPreferredContentLog
]
@@ -99,6 +100,9 @@ uuidLog = "uuid.log"
numcopiesLog :: RawFilePath
numcopiesLog = "numcopies.log"
+mincopiesLog :: RawFilePath
+mincopiesLog = "mincopies.log"
+
configLog :: RawFilePath
configLog = "config.log"