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