mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 10:01:14 -03:00
git completion: use new test -ef
Just an opportunistic little cleanup. Technically faster.
This commit is contained in:
@@ -490,7 +490,7 @@ function __fish_git_files
|
|||||||
set file (string replace -- "$root/" ":/:" "$root/$relfile")
|
set file (string replace -- "$root/" ":/:" "$root/$relfile")
|
||||||
end
|
end
|
||||||
|
|
||||||
if test "$root/$relfile" = (pwd -P)/$relfile
|
if test "$root/$relfile" -ef "$relfile"
|
||||||
and not string match -q ':*' -- (commandline -ct)
|
and not string match -q ':*' -- (commandline -ct)
|
||||||
set file $relfile
|
set file $relfile
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user