fish-shell/share
Eric N. Vander Weele fdd4bcf718 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.
2023-04-10 17:04:34 +02:00
..
completions completions/git: Allow switch to complete remote branches 2023-04-10 17:04:34 +02:00
functions fix E not moving cursor at end of word in VI mode 2023-04-01 10:04:28 -07:00
groff
tools webconfig: Set a variable before 2023-02-19 14:57:32 +01:00
__fish_build_paths.fish.in
config.fish share/config: Erase on_interactive before doing __fish_config_interactive 2023-02-11 14:15:44 +01:00