diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-12-21 14:30:23 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-12-21 14:30:23 -0800 |
commit | 876e78f31d2aa23e9f669a257ddcbf9a7970a958 (patch) | |
tree | a101bf4e97fa60c96907805764c37f921551593d /contrib | |
parent | 41cd7974b0b67b78c39bccc86718dbe19390f768 (diff) | |
parent | 057f327972e7016703317e65e7af144a8e244d0a (diff) | |
download | git-876e78f31d2aa23e9f669a257ddcbf9a7970a958.tar.gz git-876e78f31d2aa23e9f669a257ddcbf9a7970a958.tar.xz |
Merge branch 'tc/completion-reflog'
* tc/completion-reflog:
bash completion: add basic support for git-reflog
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/completion/git-completion.bash | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 25c431469..803da09a1 100755 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -735,7 +735,6 @@ __git_list_porcelain_commands () quiltimport) : import;; read-tree) : plumbing;; receive-pack) : plumbing;; - reflog) : plumbing;; remote-*) : transport;; repo-config) : deprecated;; rerere) : plumbing;; @@ -1632,6 +1631,18 @@ _git_rebase () __gitcomp "$(__git_refs)" } +_git_reflog () +{ + local subcommands="show delete expire" + local subcommand="$(__git_find_on_cmdline "$subcommands")" + + if [ -z "$subcommand" ]; then + __gitcomp "$subcommands" + else + __gitcomp "$(__git_refs)" + fi +} + __git_send_email_confirm_options="always never auto cc compose" __git_send_email_suppresscc_options="author self cc bodycc sob cccmd body all" |