Skip to content

Add --locations-only option to list worktree directories - #128

Merged
nnutter merged 3 commits into
masterfrom
locations-only
Nov 19, 2026
Merged

nnutter merged 3 commits into
masterfrom
locations-only

Conversation

@nnutter

@nnutter nnutter commented Nov 19, 2026

Copy link
Copy Markdown
Owner

No description provided.

Group the worktree listing flags and arguments into timber.ListOptions
instead of passing seven positional parameters through the CLI and
runtime layers.

This prepares ListWorktrees for the upcoming --locations-only option
without adding another positional boolean parameter.

Change-Id: I0b72c5cc623cb2cda14d34a443c483edec11d3d6
Have enrichWorktreeForSort only populate commit timestamps for recency
sorting, and extract listWorktreeEnricher out of ListWorktrees to run
status and TODO enrichment separately.

This prepares ListWorktrees so --locations-only can skip per-worktree
status and TODO lookups while still supporting --sort recency, and keeps
ListWorktrees below constable's complexity limit.

Change-Id: I402270b2f9a9124989f81e52db3e04bf9755c86e
Print only worktree directories, one per line, using ~ for paths under
the home directory.

Skip per-worktree status, TODO, review, and PR lookups when
--locations-only is set so listing directories stays fast while still
honoring @repo filtering and --sort ordering. Reject combinations with
--json, --pr, --todo, --review, and --location since those options
control other output formats or table columns.

Change-Id: I6cfb74447ee2e84c1def6a18c6646099b2a4b0e1
@nnutter
nnutter enabled auto-merge November 19, 2026 19:28
@nnutter
nnutter merged commit d0843fe into master Nov 19, 2026
3 checks passed
@nnutter
nnutter deleted the locations-only branch November 19, 2026 19:39
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