mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-01 11:09:45 +08:00
43c87e13c9
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 |
||
---|---|---|
.. | ||
completions | ||
functions | ||
groff | ||
tools | ||
__fish_build_paths.fish.in | ||
config.fish |