Repository navigation
Add --locations-only option to list worktree directories - #128
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.