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 performancemaint
commit
3a940e90d5
|
@ -390,12 +390,7 @@ __git_index_files ()
|
||||||
local root="${2-.}" file
|
local root="${2-.}" file
|
||||||
|
|
||||||
__git_ls_files_helper "$root" "$1" |
|
__git_ls_files_helper "$root" "$1" |
|
||||||
while read -r file; do
|
cut -f1 -d/ | sort | uniq
|
||||||
case "$file" in
|
|
||||||
?*/*) echo "${file%%/*}" ;;
|
|
||||||
*) echo "$file" ;;
|
|
||||||
esac
|
|
||||||
done | sort | uniq
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Lists branches from the local repository.
|
# Lists branches from the local repository.
|
||||||
|
|
Loading…
Reference in New Issue