Skip to content

feat(list): add list command to enumerate worktrees with status - #17

Merged
0x56696B merged 6 commits into
mainfrom
feat/list-command
May 11, 2026
Merged

0x56696B merged 6 commits into
mainfrom
feat/list-command

Conversation

@0x56696B

@0x56696B 0x56696B commented May 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add git-wt list command showing all worktrees in current bare repo
  • Each worktree shows name, optional path (--verbose/-v), and status tags [prunable] [unmerged]
  • Unmerged detection: merge-base check against configured default branch (falls back to main)
  • Follows three-file command pattern: args_list.py, cmd_list.py, result_list.py, worktree_info.py
  • 8 pytest tests covering: non-bare repo, plain dir, empty repo, single worktree, multiple worktrees, prunable, unmerged detection

@0x56696B
0x56696B marked this pull request as ready for review May 5, 2026 12:44
@0x56696B
0x56696B merged commit 2a28313 into main May 11, 2026
3 checks passed
@0x56696B
0x56696B deleted the feat/list-command branch May 11, 2026 13:14
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.

1 participant