Skip to content

prune: honor -group-by; docs: document the flag#2162

Merged
poolpOrg merged 2 commits into
mainfrom
feature/locate-group-by
May 29, 2026
Merged

prune: honor -group-by; docs: document the flag#2162
poolpOrg merged 2 commits into
mainfrom
feature/locate-group-by

Conversation

@poolpOrg
Copy link
Copy Markdown
Collaborator

Summary

mergePolicyOptions overwrites Filters but used to drop GroupBy on the floor, so -group-by parsed from the command line never reached Match. Three lines fix it.

plakar-query(7) gets a new entry for the flag; every subcommand that supports the locate flags (ls, prune, locate, check, mount, rm, sync, config policy) already defers to it.

Requires the GroupBy field on locate.LocateOptionsPlakarKorp/kloset#441.

Test plan

  • plakar at /tmp/repo prune -perimeter foo -tag bar -days 1 -per-day 1 -group-by name keeps the newest snapshot per name; without -group-by it keeps the newest overall
  • -apply removes the expected set

@poolpOrg poolpOrg marked this pull request as ready for review May 28, 2026 15:05
@poolpOrg poolpOrg force-pushed the feature/locate-group-by branch from 5117c2a to 119abfe Compare May 29, 2026 14:05
poolpOrg and others added 2 commits May 29, 2026 16:07
mergePolicyOptions overwrites Filters but used to drop GroupBy on the
floor, so -group-by parsed from the command line never reached Match.

Document -group-by in plakar-query(7).

Requires the GroupBy field on locate.LocateOptions
(PlakarKorp/kloset#441).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@poolpOrg poolpOrg force-pushed the feature/locate-group-by branch from 119abfe to a7de218 Compare May 29, 2026 14:08
@poolpOrg poolpOrg merged commit 8ddef2e into main May 29, 2026
11 checks passed
@poolpOrg poolpOrg deleted the feature/locate-group-by branch May 29, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants