forget json output: added id's in snapshots within reasons object

In order to evaluate the keep reasons for snapshots, there should be also the id's
to compare it with snapshots within the keep object. (See also Issue #3117)

In order to avoid output parameters also changed function addJSONSnapshots to asJSONSnapshots
This commit is contained in:
Stephan Paul committed 2024-03-29 11:30:00 +01:00
1 parent 510f6f06b0
commit df07814ec2
3 files changed
+47 -18

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
Enhancement: include snapshot id in reason field of forget JSON output
The JSON output of the `forget` command now includes the `id` and `short_id` of a snapshot in the `reason` field.
https://github.com/restic/restic/pull/4737