Replaced calls to '_git' wrapper with its contents, '__git_wrap__git_main'

Since '_git' has been removed in git 2.30
This commit is contained in:
telzhov
2021-01-02 23:33:39 +03:00
parent 4f1e421652
commit ad6bfdda3d

View File

@@ -57,7 +57,7 @@ let COMP_CWORD+=1
local cur words cword prev local cur words cword prev
_get_comp_words_by_ref -n =: cur words cword prev _get_comp_words_by_ref -n =: cur words cword prev
_git __git_wrap__git_main
} }
" "
} }
@@ -184,7 +184,7 @@ if [ $shell = "bash" ]; then
[[ -s "/usr/share/git/completion/git-completion.bash" ]] && source "/usr/share/git/completion/git-completion.bash" [[ -s "/usr/share/git/completion/git-completion.bash" ]] && source "/usr/share/git/completion/git-completion.bash"
# new path in Ubuntu 13.04 # new path in Ubuntu 13.04
[[ -s "/usr/share/bash-completion/completions/git" ]] && source "/usr/share/bash-completion/completions/git" [[ -s "/usr/share/bash-completion/completions/git" ]] && source "/usr/share/bash-completion/completions/git"
complete -o default -o nospace -F _git $git_alias complete -o default -o nospace -F __git_wrap__git_main $git_alias
# Git repo management & aliases. # Git repo management & aliases.
# If you know how to rewrite _git_index_tab_completion() for zsh, please send me a pull request! # If you know how to rewrite _git_index_tab_completion() for zsh, please send me a pull request!