Skip to content

feat(git): add configurable commit history retention and get_recent_changes MCP tool - #107

Merged
spelech merged 2 commits into
mainfrom
feat/git-commit-retention-issue-101
Nov 11, 2026
Merged

spelech merged 2 commits into
mainfrom
feat/git-commit-retention-issue-101

Conversation

@spelech

@spelech spelech commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Closes #101

Summary

  • Adds configurable retain_commits_count (default 20, range 0..500) to git_repositories and creates the git_commits table with (repo, commit_sha) uniqueness and indexes.
  • Updates shallow_clone_repo and sync_single_git_repo to fetch with depth max(1, retain_commits_count), extract recent commit metadata via extract_recent_commits, and automatically prune older rows beyond retain_commits_count (or purge all when retain_commits_count == 0).
  • Exposes get_recent_changes MCP tool returning compact JSON (including structured fallback notice when retain_commits_count == 0 or no commits are retained).
  • Adds UI controls for retain_commits_count in AddRepoModal and RepoListTable.

@spelech
spelech merged commit 5225cc0 into main Nov 11, 2026
3 of 4 checks passed
@spelech
spelech deleted the feat/git-commit-retention-issue-101 branch November 11, 2026 15:12
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.

feat(git): add configurable commit history retention and get_recent_changes MCP tool

1 participant