Skip to content

Conversation

@tninja
Copy link
Owner

@tninja tninja commented Jan 10, 2026

When there is multiple different git repo root corresponding to buffer files opened in current window, ask which one to add to, order is: current buffer git repo first, then other buffer git repo

Also add pycache to default gitignore file patterns

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for cross-repository context management when multiple git repositories are open in Emacs buffers, and adds __pycache__/ to the default gitignore patterns.

Changes:

  • Enhanced ai-code-add-context to detect and allow selection from multiple git repositories visible in current frame windows
  • Added __pycache__/ to the list of default gitignore entries managed by ai-code-update-git-ignore
  • Updated HISTORY.org with release notes

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
ai-code-file.el Implements multi-repo detection logic using walk-windows to find all git repositories in visible buffers, prioritizing current buffer's repo, and prompting user to select when multiple repos are found
ai-code-git.el Adds __pycache__/ directory pattern to default gitignore entries list
HISTORY.org Documents the new feature and gitignore addition in release history

tninja and others added 2 commits January 9, 2026 20:03
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@tninja tninja merged commit 3c27ae6 into main Jan 10, 2026
2 checks passed
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