[PR #379] feat: Add multi-repository workspace support for checkpoints #433

Closed
opened 2026-03-02 04:13:37 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/git-ai-project/git-ai/pull/379

State: closed
Merged: Yes


This change enables git-ai to work correctly in workspaces where the root directory is not a git repository but contains multiple independent git repositories as subdirectories. #357

Changes:

  • Add find_repository_for_file() to locate the git repo containing a file by walking up the directory tree (with submodule detection)
  • Add group_files_by_repository() to group edited files by their containing git repository
  • Update checkpoint handler to detect multi-repo workspaces and process each repository separately with its own subset of edited files
  • Convert workspace-relative paths to absolute paths for correct repo detection
  • Continue processing remaining repos if one fails (graceful degradation)
  • Add detailed logging for multi-repo checkpoint progress
  • Add comprehensive test suite for multi-repo workspace scenarios

This enables proper attribution tracking when editing files across multiple repositories in a single session.

**Original Pull Request:** https://github.com/git-ai-project/git-ai/pull/379 **State:** closed **Merged:** Yes --- This change enables git-ai to work correctly in workspaces where the root directory is not a git repository but contains multiple independent git repositories as subdirectories. #357 Changes: - Add find_repository_for_file() to locate the git repo containing a file by walking up the directory tree (with submodule detection) - Add group_files_by_repository() to group edited files by their containing git repository - Update checkpoint handler to detect multi-repo workspaces and process each repository separately with its own subset of edited files - Convert workspace-relative paths to absolute paths for correct repo detection - Continue processing remaining repos if one fails (graceful degradation) - Add detailed logging for multi-repo checkpoint progress - Add comprehensive test suite for multi-repo workspace scenarios This enables proper attribution tracking when editing files across multiple repositories in a single session.
kerem 2026-03-02 04:13:37 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#433
No description provided.