mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 02:27:28 +08:00
0ea6703661
Git's pathspec system is kind of annoying: > A pathspec that begins with a colon : has special meaning. In the short form, the leading colon : is followed by zero or more "magic signature" letters (which optionally is terminated by another colon :), and the remainder is the pattern to match against the path. The "magic signature" consists of ASCII symbols that are neither alphanumeric, glob, regex special characters nor colon. The optional colon that terminates the "magic signature" can be omitted if the pattern begins with a character that does not belong to "magic signature" symbol set and is not a colon. So if we complete `:/foo`, that "works" because "f" is alphanumeric and so the "/" is the only magic character here. If, however the filename starts with a magic character, that's used as a magic signature. So we do what the docs say and terminate the magic signature after the "/" (which means "from the repo root"). Fixes #9004 |
||
---|---|---|
.. | ||
completions | ||
functions | ||
groff | ||
tools | ||
__fish_build_paths.fish.in | ||
config.fish | ||
lynx.lss |