bash: remove unnecessary conditions when checking for subcommands

Checking emptyness of $command is sufficient.

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
SZEDER Gábor 2008-03-10 16:02:22 +01:00 коммит произвёл Shawn O. Pearce
Родитель a5c4f85b16
Коммит 1d17b22ebf
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -497,7 +497,7 @@ _git_bisect ()
c=$((++c))
done
if [ $c -eq $COMP_CWORD -a -z "$command" ]; then
if [ -z "$command" ]; then
__gitcomp "start bad good reset visualize replay log"
return
fi
@ -1042,7 +1042,7 @@ _git_remote ()
c=$((++c))
done
if [ $c -eq $COMP_CWORD -a -z "$command" ]; then
if [ -z "$command" ]; then
__gitcomp "add rm show prune update"
return
fi
@ -1135,7 +1135,7 @@ _git_submodule ()
c=$((++c))
done
if [ $c -eq $COMP_CWORD -a -z "$command" ]; then
if [ -z "$command" ]; then
local cur="${COMP_WORDS[COMP_CWORD]}"
case "$cur" in
--*)
@ -1198,7 +1198,7 @@ _git ()
c=$((++c))
done
if [ $c -eq $COMP_CWORD -a -z "$command" ]; then
if [ -z "$command" ]; then
case "${COMP_WORDS[COMP_CWORD]}" in
--*=*) COMPREPLY=() ;;
--*) __gitcomp "