aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/git.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bash_completion.d/git.bash')
-rw-r--r--bash/bash_completion.d/git.bash23
1 files changed, 0 insertions, 23 deletions
diff --git a/bash/bash_completion.d/git.bash b/bash/bash_completion.d/git.bash
index 5cf42ed3..2bee169a 100644
--- a/bash/bash_completion.d/git.bash
+++ b/bash/bash_completion.d/git.bash
@@ -69,23 +69,6 @@ _git() {
done
return
;;
-
- # Untracked files
- untracked_files)
- local file
- while IFS= read -rd '' file ; do
- [[ -n $file ]] || continue
- COMPREPLY[${#COMPREPLY[@]}]=$file
- done < <(git ls-files \
- --directory \
- --exclude-standard \
- --no-empty-directory \
- --others \
- -z \
- -- "${COMP_WORDS[COMP_CWORD]}"'*' \
- 2>/dev/null)
- return
- ;;
esac
# Try to find the index of the Git subcommand
@@ -117,12 +100,6 @@ _git() {
# Test subcommand to choose completions
case ${COMP_WORDS[sci]} in
- # Complete with untracked, unignored files
- add)
- "${FUNCNAME[0]}" untracked_files
- return
- ;;
-
# Help on real subcommands (not aliases)
help)
"${FUNCNAME[0]}" subcommands