From aff1e220f540f3bd2690d555d32c11355e96f969 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Tue, 3 Nov 2020 11:14:53 +0100 Subject: [PATCH] Split struct members, add comments --- cmd/restic/cmd_prune.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/cmd/restic/cmd_prune.go b/cmd/restic/cmd_prune.go index f9f42d720..e42eb598f 100644 --- a/cmd/restic/cmd_prune.go +++ b/cmd/restic/cmd_prune.go @@ -37,12 +37,15 @@ Exit status is 0 if the command was successful, and non-zero if there was any er // PruneOptions collects all options for the cleanup command. type PruneOptions struct { - DryRun bool - MaxUnused string - MaxUnusedPercent float64 - MaxUnusedBytes uint64 - MaxRepackSize string - MaxRepackBytes uint64 + DryRun bool + + MaxUnused string + MaxUnusedPercent float64 // set if MaxUnused is a percentage + MaxUnusedBytes uint64 // set if MaxUnused is an absolute number of bytes + + MaxRepackSize string + MaxRepackBytes uint64 + RepackCachableOnly bool }