From cc896994572f19e0df77314c0cce7c3e88268322 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 6 Jan 2021 14:11:08 -0400 Subject: 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. --- Logs.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Logs.hs') 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" -- cgit v1.2.3