prstack list
List the current PR stack
Command: list
Lists the current PR stack from your position to trunk.
Usage
prstack list [options]Options
--exclude-prs (or -E)
Skip fetching PR information. By default, prstack list fetches and displays PR URLs for each branch in the stack. Use this flag to disable PR fetching for faster execution, which is useful in scripting scenarios where PR information isn't needed.
prstack list --exclude-prs--all
List all branches in the stack, not just from the current position to trunk.
prstack list --allHow It Works
The list command:
- Traces from your current branch back to the trunk
- Displays each branch in the stack
- Fetches and displays PR information for each branch (unless
--exclude-prsis used)
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