snapshots: revert default --lastest behavior to pre-0.19.0

the changed behavior now only applies when using `--group-by`.
This commit is contained in:
Michael Eischer
2026-06-20 16:32:50 +02:00
parent 9f84c80056
commit 369da8a770
3 changed files with 86 additions and 6 deletions
+11
View File
@@ -0,0 +1,11 @@
Bugfix: Restore old behavior of `snapshots --latest <n>` without `--group-by`
Restic 0.19.0 changed the behavior of `snapshots --latest <n>` to no longer
group snapshots by default.
`snapshots --latest <n>` has been reverted to the old behavior if `--group-by`
is not specified. When specifying `--group-by`, the output is still grouped as
requested like in restic 0.19.0.
https://github.com/restic/restic/issues/21869
https://github.com/restic/restic/pull/21875