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:
Junio C Hamano 2018-04-25 13:29:02 +09:00
commit 3a940e90d5

View file

@ -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.