fish-shell/share
Fabian Boehm 0ea6703661 completions/git: Terminate pathspec magic
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
2022-06-07 20:10:13 +02:00
..
completions completions/git: Terminate pathspec magic 2022-06-07 20:10:13 +02:00
functions help: Let help path go to the builtin, not the tutorial section 2022-06-07 14:32:27 +02:00
groff
tools create_manpage_completions.py: Do not overstrip commands with dots 2022-05-29 17:00:32 +02:00
__fish_build_paths.fish.in
config.fish Search $__fish_user_data_dir for vendor additions 2022-05-12 20:29:05 +02:00
lynx.lss