diff options
author | Lee Marlow <lee.marlow@gmail.com> | 2008-08-04 23:50:32 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-05 21:21:19 -0700 |
commit | 4181c7e8a7ece0cf117e7ec6bb8bca989e116f7e (patch) | |
tree | 1e322a281e6f6fcec17cacc5419195a39caaa6db /contrib | |
parent | 3eb11012078e9a2b9f444dbf1aae1f1cdd33fef1 (diff) | |
download | git-4181c7e8a7ece0cf117e7ec6bb8bca989e116f7e.tar.gz git-4181c7e8a7ece0cf117e7ec6bb8bca989e116f7e.tar.xz |
bash completion: Add completion for 'git clean'
Add completions for all long options specified in the docs
--dry-run --quiet
Signed-off-by: Lee Marlow <lee.marlow@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/completion/git-completion.bash | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 147452528..97ece7d8e 100755 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -667,6 +667,20 @@ _git_cherry_pick () esac } +_git_clean () +{ + __git_has_doubledash && return + + local cur="${COMP_WORDS[COMP_CWORD]}" + case "$cur" in + --*) + __gitcomp "--dry-run --quiet" + return + ;; + esac + COMPREPLY=() +} + _git_clone () { local cur="${COMP_WORDS[COMP_CWORD]}" @@ -1523,6 +1537,7 @@ _git () checkout) _git_checkout ;; cherry) _git_cherry ;; cherry-pick) _git_cherry_pick ;; + clean) _git_clean ;; clone) _git_clone ;; commit) _git_commit ;; config) _git_config ;; |