add --set-upstream-to=|-u on mr checkout
Created by: maxice8
Describe the feature or problem you'd like to solve
When checking out a branch if one uses --track
then it adds another remote, this is wasteful and is bound to cause problems with maximum remotes lookup.
Propose a Solution
add a --track-the
| -t
or --set-upstream-to
| -u
(simulating git) that takes a branch
or remote/branch
and sets it after checking out the branch, so people can do:
foo@bar:~$ git status -sb
## trunk...upstream/trunk
foo@bar:~$ glab mr checkout foo --track-the=upstream/trunk
[truncated]
foo@bar:~$ git status -sb
## foo...upstream/trunk
foo@bar:~$ glab mr checkout foo --track-the=trunk
[truncated]
foo@bar:~$ git status -sb
## foo...trunk