Skip to content

Feat: Integrate with magit worktree feature#216

Merged
tninja merged 4 commits intomainfrom
test_worktree
Mar 8, 2026
Merged

Feat: Integrate with magit worktree feature#216
tninja merged 4 commits intomainfrom
test_worktree

Conversation

@tninja
Copy link
Copy Markdown
Owner

@tninja tninja commented Mar 8, 2026

With worktree, the multi session are relative nature. The work here is to simplify the worktree creation (basically folder-name = branch-name), it just need to have a worktree-rootname predefined: ai-code-git-worktree-root

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ac7d88b68d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ai-code-git.el Outdated
Comment thread ai-code-git.el
Copy link
Copy Markdown
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

Adds Magit worktree support to ai-code-interface.el by introducing a centralized worktree root and a transient menu entry to create/visit a new branch worktree (or open worktree status with a prefix arg).

Changes:

  • Added ai-code-git-worktree-root customization and new worktree commands in ai-code-git.el.
  • Exposed the worktree action via the main transient menu (w) in ai-code.el.
  • Added ERT tests covering the new worktree functions in test/test_ai-code-git.el.

Reviewed changes

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

File Description
ai-code-git.el Adds centralized worktree root defcustom plus commands to create a worktree branch and dispatch worktree actions.
ai-code.el Wires the new worktree action into the transient menu (w).
test/test_ai-code-git.el Introduces unit tests for the new worktree branch/action commands.

Comment thread ai-code-git.el Outdated
Comment thread ai-code-git.el Outdated
Comment thread ai-code-git.el
Comment thread test/test_ai-code-git.el
@tninja
Copy link
Copy Markdown
Owner Author

tninja commented Mar 8, 2026

This is initial attempt on worktree feature. I'll merge this PR and use it firstly. Will submit separate PR to improve / fix this feature later after I get more knowledge about worktree.

@tninja
Copy link
Copy Markdown
Owner Author

tninja commented Mar 8, 2026

addressing #215

@tninja tninja merged commit e7d6a5d into main Mar 8, 2026
2 checks passed
@tninja tninja deleted the test_worktree branch April 9, 2026 15:09
@tninja tninja restored the test_worktree branch April 9, 2026 15:09
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