Skip to content
Permalink
Browse files

Merge branch 'cb/bash-completion-ls-files-processing' into next

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 fixes #1533

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information...
gitster authored and dscho committed Apr 17, 2018
2 parents fcbb1fa + 78a2d21 commit 8dd7bac908205e607b25ea56f17b82ba40310520
Showing with 1 addition and 6 deletions.
  1. +1 −6 contrib/completion/git-completion.bash
@@ -388,12 +388,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.

0 comments on commit 8dd7bac

Please sign in to comment.
You can’t perform that action at this time.