提交 08c701d4 编写于 作者: L Lee Marlow 提交者: Junio C Hamano

bash completion: Add long options for 'git rm'

Options added: --cached --dry-run --ignore-unmatch --quiet
Signed-off-by: NLee Marlow <lee.marlow@gmail.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 e8a43a13
......@@ -1170,6 +1170,20 @@ _git_reset ()
__gitcomp "$(__git_refs)"
}
_git_rm ()
{
__git_has_doubledash && return
local cur="${COMP_WORDS[COMP_CWORD]}"
case "$cur" in
--*)
__gitcomp "--cached --dry-run --ignore-unmatch --quiet"
return
;;
esac
COMPREPLY=()
}
_git_shortlog ()
{
__git_has_doubledash && return
......@@ -1425,6 +1439,7 @@ _git ()
rebase) _git_rebase ;;
remote) _git_remote ;;
reset) _git_reset ;;
rm) _git_rm ;;
send-email) _git_send_email ;;
shortlog) _git_shortlog ;;
show) _git_show ;;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册