Reference
prstack list
List the current PR stack
prstack list
Lists the current PR stack from your position to trunk.
Usage
prstack list [options]
Options
--include-prs
Include associated PR URLs in the output.
prstack list --include-prs
Examples
Basic List
prstack list
# Output:
# feature-c
# feature-a
# main
With PR URLs
prstack list --include-prs
# Output:
# feature-c (https://github.com/owner/repo/pull/123)
# feature-a (https://github.com/owner/repo/pull/122)
# main
How It Works
The list command:
- Traces from your current branch back to the trunk
- Displays each branch in the stack
- Optionally fetches and displays PR information for each branch
When to Use
Use prstack list when you want to:
- Quickly see your current stack structure
- Verify which branches are in your stack
- Check PR status for branches in your stack
- Get PR URLs for sharing or reference
See Also
- prstack sync - Sync the current stack
- prstack create - Create missing PRs