bash completion: Add long options for 'git rm'
Options added: --cached --dry-run --ignore-unmatch --quiet Signed-off-by: Lee Marlow <lee.marlow@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Lee Marlow committed
Jul 23, 2008 at 15:21 UTC
08c701d4761abf58dce607e84bf41fb280e38a9e
1 file changed
+15
contrib/completion/git-completion.bash
+15
@@ -1170,6 +1170,20 @@ _git_reset ()
1170
__gitcomp "$(__git_refs)"
1171
}
1172
1173
+_git_rm ()
1174
+{
1175
+ __git_has_doubledash && return
1176
+
1177
+ local cur="${COMP_WORDS[COMP_CWORD]}"
1178
+ case "$cur" in
1179
+ --*)
1180
+ __gitcomp "--cached --dry-run --ignore-unmatch --quiet"
1181
+ return
1182
+ ;;
1183
+ esac
1184
+ COMPREPLY=()
1185
+}
1186
+
1187
_git_shortlog ()
1188
{
1189
__git_has_doubledash && return
@@ -1425,6 +1439,7 @@ _git ()
1439
rebase) _git_rebase ;;
1440
remote) _git_remote ;;
1441
reset) _git_reset ;;
1442
+ rm) _git_rm ;;
1443
send-email) _git_send_email ;;
1444
shortlog) _git_shortlog ;;
1445
show) _git_show ;;