aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLee Marlow <lee.marlow@gmail.com>2008-07-23 15:21:08 -0600
committerJunio C Hamano <gitster@pobox.com>2008-07-23 17:06:30 -0700
commit08c701d4761abf58dce607e84bf41fb280e38a9e (patch)
tree990e417223047ff5f6c5e68c24526251fec37198 /contrib
parente8a43a132d97165f6e56fa03923a3933cfedde81 (diff)
downloadgit-08c701d4761abf58dce607e84bf41fb280e38a9e.tar.gz
git-08c701d4761abf58dce607e84bf41fb280e38a9e.tar.xz
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>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/completion/git-completion.bash15
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 8fc914528..e20d57a1b 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -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 ;;