Merge branch 'cb/bash-completion-ls-files-processing'
Shell completion (in contrib) that gives list of paths have been optimized somewhat. * cb/bash-completion-ls-files-processing: completion: improve ls-files filter performance
This commit is contained in:
commit
3a940e90d5
@ -390,12 +390,7 @@ __git_index_files ()
|
||||
local root="${2-.}" file
|
||||
|
||||
__git_ls_files_helper "$root" "$1" |
|
||||
while read -r file; do
|
||||
case "$file" in
|
||||
?*/*) echo "${file%%/*}" ;;
|
||||
*) echo "$file" ;;
|
||||
esac
|
||||
done | sort | uniq
|
||||
cut -f1 -d/ | sort | uniq
|
||||
}
|
||||
|
||||
# Lists branches from the local repository.
|
||||
|
Loading…
Reference in New Issue
Block a user