fish-shell/share
Eric N. Vander Weele 43c87e13c9 completions/git: Allow switch to complete remote branches
While it is true that `git switch <remote-branch>` errors to disallow a detached
head without the `-d` option, it is valid to use any starting point (commit or
reference) in conjunction with the `-c` option. Additionally, the starting point
can occur before any option.

This enables the following completions:

* `git switch -c <local-name> <any-branch>`
* `git switch <any-branch> -c <local-name>`
* `git switch -d <any-starting-point>`
* `git switch <any-branch> -d`

The trade-off is this does allow for `git switch <remote-branch>` to be
completed with an error.

Note that this logically reverts 7e3d3cc30f.

(cherry picked from commit fdd4bcf718)
2023-09-09 09:28:33 +02:00
..
completions completions/git: Allow switch to complete remote branches 2023-09-09 09:28:33 +02:00
functions completions/zfs: Check for zpool 2023-09-08 19:57:56 +02:00
groff
tools webconfig: Set a variable before 2023-02-27 22:40:59 +08:00
__fish_build_paths.fish.in
config.fish share/config: Erase on_interactive before doing __fish_config_interactive 2023-02-27 22:40:58 +08:00