pr-1584/dscho/complete-switch-t-properly-v1
tagged this
08 Sep 12:28
From: Johannes Schindelin <johannes.schindelin@gmx.de> When `git switch --track ` is to be completed, only remote refs are eligible because that is what the `--track` option targets. And when the short-hand `-t` is used instead, the same _should_ happen. Let's make it so. Note that the bug exists both in the completions of `switch` and `completion`, even if it manifests in slightly different ways: While the completion of `git switch -t ` will not even look at remote refs, the completion of `git checkout -t ` will look at both remote _and_ local refs. Both should look only at remote refs. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Submitted-As: https://lore.kernel.org/git/pull.1584.git.1694176123471.gitgitgadget@gmail.com
Assets 2
-
2023-09-08T12:28:43Z -
2023-09-08T12:28:43Z -