Skip to content

feat(git): add GitAdapter:worktree_list wrapper - #339

Merged
dlyongemallo merged 1 commit into
mainfrom
git_worktree_list_wrapper
Oct 8, 2026
Merged

dlyongemallo merged 1 commit into
mainfrom
git_worktree_list_wrapper

Conversation

@dlyongemallo

Copy link
Copy Markdown
Owner

Continuing work on #334.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Newline-containing worktree paths are parsed incorrectly without NUL-delimited output.

1 open finding
What changed in this PR

Adds Git worktree enumeration as groundwork for issue #334.

Changes:

  • Adds GitAdapter:worktree_list.
  • Adds functional coverage for main and linked worktrees.
File Description
lua/​diffview/​vcs/​adapters/​git/​init.lua Wraps and parses git worktree list --porcelain.
lua/​diffview/​tests/​functional/​git_worktree_list_spec.lua Tests plain and linked worktree enumeration.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Comment thread lua/diffview/vcs/adapters/git/init.lua
@dlyongemallo
dlyongemallo merged commit 4e064c1 into main Oct 8, 2026
9 checks passed
@dlyongemallo
dlyongemallo deleted the git_worktree_list_wrapper branch October 8, 2026 13:23
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