chiark
/
gitweb
/
~ian
/
topgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tg-completion: complete options for `tg summary`
[topgit.git]
/
contrib
/
tg-completion.bash
diff --git
a/contrib/tg-completion.bash
b/contrib/tg-completion.bash
index 59fbc5065475bdb0241e73945f022196c9a0fc4f..4d69c05e26951307a38070bbd0315af60833dbf5 100755
(executable)
--- a/
contrib/tg-completion.bash
+++ b/
contrib/tg-completion.bash
@@
-191,7
+191,7
@@
__tg_complete_revlist ()
__tg_topics ()
{
- tg summary
| cut -f 2
+ tg summary
-t
}
__tg_commands ()
@@
-376,7
+376,15
@@
_tg_remote ()
_tg_summary ()
{
- COMPREPLY=()
+ local cur="${COMP_WORDS[COMP_CWORD]}"
+
+ case "$cur" in
+ *)
+ __tgcomp "
+ --graphviz
+ -t
+ "
+ esac
}
_tg_update ()