Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --prune-repeated-keep <number> option to spfs clean #1176

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dcookspi
Copy link
Collaborator

@dcookspi dcookspi commented Feb 4, 2025

This adds a --prune-repeated-keep <number> option to spfs clean. It allows the user to decide how many repeated tags in a tag stream to keep. The existing --prune-repeated option is equivalent to --prune-repeated-keep 1. But either option can be used.

We have a case where we'd like to keep some repeated tags, say the last 20 , and prune the rest periodically from the local repo.

@dcookspi dcookspi self-assigned this Feb 4, 2025
@dcookspi dcookspi requested review from rydrman and jrray February 4, 2025 23:54
@dcookspi
Copy link
Collaborator Author

dcookspi commented Feb 5, 2025

I left a default value in, I'll need to fix that before this goes further.

  • Remove the default value and use NonZero

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.

1 participant