git completion: use new test -ef

Just an opportunistic little cleanup. Technically faster.
This commit is contained in:
Aaron Gyes 2022-08-02 00:15:50 -07:00
parent 095c093af6
commit df51fea897

View File

@ -490,7 +490,7 @@ function __fish_git_files
set file (string replace -- "$root/" ":/:" "$root/$relfile")
end
if test "$root/$relfile" = (pwd -P)/$relfile
if test "$root/$relfile" -ef "$relfile"
and not string match -q ':*' -- (commandline -ct)
set file $relfile
end