Skip to content

Feat/configurable snapshot lifespan#157

Open
ariane-emory wants to merge 24 commits intodevfrom
feat/configurable-snapshot-lifespan
Open

Feat/configurable snapshot lifespan#157
ariane-emory wants to merge 24 commits intodevfrom
feat/configurable-snapshot-lifespan

Conversation

@ariane-emory
Copy link
Owner

@ariane-emory ariane-emory commented Feb 9, 2026

What does this PR do?

Please provide a description of the issue (if there is one), the changes you made to fix it, and why they work. It is expected that you understand why your changes work and if you do not understand why at least say as much so a maintainer knows how much to value the pr.

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

test foo
one two

- Changed schema to use .nonnegative() instead of .positive()
- Updated cleanup() and track() to treat 0 the same as false
- 0 and false both disable snapshots
- Positive integers enable snapshots with N-day retention
Replace git gc --prune with direct directory management for snapshot cleanup based on configurable retention period. Snapshots older than the configured number of days are now deleted directly from the filesystem.
Changed snapshot configuration tests to verify the actual retention period calculation logic instead of only checking truthiness. Removed redundant test that looped through multiple integer values.
Added proper type annotations to resolve TS2367 errors in the retention calculation tests.
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