X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=blobdiff_plain;f=contrib%2Ftg-completion.bash;h=9641d04dea15bbf019fe492417b1aa617b26abe7;hp=67f820e8d55068697490ac537f27cede4ba46fd2;hb=8c77c342166ddc6ecb3840628d89ddc5bb6b043b;hpb=603df20f16bcd4c11365bfad1fb7f5b3c7228c07 diff --git a/contrib/tg-completion.bash b/contrib/tg-completion.bash index 67f820e..9641d04 100755 --- a/contrib/tg-completion.bash +++ b/contrib/tg-completion.bash @@ -369,6 +369,11 @@ _tg_remote () local cur="${COMP_WORDS[COMP_CWORD]}" case "$cur" in + -*) + __tgcomp " + --populate + " + ;; *) __tgcomp "$(__tg_remotes)" esac @@ -376,7 +381,15 @@ _tg_remote () _tg_summary () { - COMPREPLY=() + local cur="${COMP_WORDS[COMP_CWORD]}" + + case "$cur" in + *) + __tgcomp " + --graphviz + -t + " + esac } _tg_update ()