Add an option for gh stack link to create local tracking state
#237
onereg-felix
started this conversation in
Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue
gh stack linkcreates or updates the Stack on GitHub but intentionally creates no localgh-stacktracking state. This is useful for external stack managers, but surprising whengh stackitself is being used to link existing branches and pull requests.After a successful link, the GitHub UI shows the Stack, while commands such as
gh stack synccan still report that the current branch is not part of a stack locally.My proposal
Add an explicit option to establish local tracking as part of the operation:
gh stack link --track-local branch-a branch-b branch-cThe option should:
gh stack view --jsonandgh stack syncworking immediately.For users who do not pass
--track-local, successful output could include the command needed to import the resulting Stack:Beta Was this translation helpful? Give feedback.
All reactions