Skip to content

feat: integrate git maintenance for mirror repos#131

Merged
alecthomas merged 1 commit intomainfrom
aat/git-maintenance
Feb 20, 2026
Merged

feat: integrate git maintenance for mirror repos#131
alecthomas merged 1 commit intomainfrom
aat/git-maintenance

Conversation

@alecthomas
Copy link
Copy Markdown
Collaborator

Summary

  • Adds registerMaintenance() to configure maintenance.strategy=incremental and run git maintenance register for each mirror repo
  • Calls it after clone (executeClone) and on startup discovery (DiscoverExisting)
  • Runs git maintenance start once in NewManager() to set up system-level scheduling (launchd/systemd)
  • Adds Maintenance config flag (default false) to gate all maintenance behavior, keeping tests clean

Closes #125

Test plan

  • Manually verify git config --get maintenance.strategy returns incremental after clone
  • Verify git config --global --get-all maintenance.repo includes the mirror path
  • Verify system scheduler is registered (launchctl list | grep git on macOS)
  • Existing tests pass without pollution (maintenance disabled by default)

🤖 Generated with Claude Code

@alecthomas alecthomas requested a review from a team as a code owner February 20, 2026 03:30
@alecthomas alecthomas requested review from wsutina and removed request for a team February 20, 2026 03:30
Register each mirror for git maintenance with the incremental strategy
after clone and on startup discovery. Adds a Maintenance config flag
(default false) to gate the behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alecthomas alecthomas merged commit 7e9978f into main Feb 20, 2026
5 checks passed
@alecthomas alecthomas deleted the aat/git-maintenance branch February 20, 2026 03:42
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.

Integrate git maintenance for routine repository upkeep

1 participant