Skip to content

Conversation

@ariane-emory
Copy link
Owner

…days

What does this PR do?

How did you verify your code works?

- 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.

2 participants