From a5b80452fe99e0d7c04b33b21e3bfaa9b6bd7f49 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Tue, 3 Nov 2020 12:50:33 +0100 Subject: [PATCH] Add comment that usedBlobs is modified --- cmd/restic/cmd_prune.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/restic/cmd_prune.go b/cmd/restic/cmd_prune.go index e42eb598f..90b702e61 100644 --- a/cmd/restic/cmd_prune.go +++ b/cmd/restic/cmd_prune.go @@ -170,6 +170,8 @@ type packInfoWithID struct { packInfo } +// prune selects which files to rewrite and then does that. The map usedBlobs is +// modified in the process. func prune(opts PruneOptions, gopts GlobalOptions, repo restic.Repository, usedBlobs restic.BlobSet) error { ctx := gopts.ctx