зеркало из https://github.com/microsoft/git.git
completion: bash: trivial cleanup
There's no need to set a variable we are not going to use. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
35a4170d86
Коммит
5a364d2a18
|
@ -416,14 +416,13 @@ __gitcomp_builtin ()
|
|||
local options
|
||||
eval "options=\${$var-}"
|
||||
|
||||
if [ -z "$options" ]; then
|
||||
local completion_helper
|
||||
if [ "$GIT_COMPLETION_SHOW_ALL" = "1" ]; then
|
||||
completion_helper="--git-completion-helper-all"
|
||||
else
|
||||
completion_helper="--git-completion-helper"
|
||||
fi
|
||||
|
||||
if [ -z "$options" ]; then
|
||||
# leading and trailing spaces are significant to make
|
||||
# option removal work correctly.
|
||||
options=" $incl $(__git ${cmd/_/ } $completion_helper) " || return
|
||||
|
|
Загрузка…
Ссылка в новой задаче