chiark / gitweb /
tg-completion: complete options for `tg summary`
[topgit.git] / contrib / tg-completion.bash
index 67f820e8d55068697490ac537f27cede4ba46fd2..4d69c05e26951307a38070bbd0315af60833dbf5 100755 (executable)
@@ -376,7 +376,15 @@ _tg_remote ()
 
 _tg_summary ()
 {
-       COMPREPLY=()
+       local cur="${COMP_WORDS[COMP_CWORD]}"
+
+       case "$cur" in
+       *)
+               __tgcomp "
+                       --graphviz
+                       -t
+               "
+       esac
 }
 
 _tg_update ()