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-patch: add support for generating patches against worktree and index
[topgit.git]
/
contrib
/
tg-completion.bash
diff --git
a/contrib/tg-completion.bash
b/contrib/tg-completion.bash
index 67f820e8d55068697490ac537f27cede4ba46fd2..de8a7b55d76bcf5059ed4b979e44efd4aaa9918c 100755
(executable)
--- 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
local cur="${COMP_WORDS[COMP_CWORD]}"
case "$cur" in
+ -*)
+ __tgcomp "
+ -i
+ -w
+ "
+ ;;
*)
__tgcomp "$(__tg_topics)"
esac
*)
__tgcomp "$(__tg_topics)"
esac
@@
-369,6
+375,11
@@
_tg_remote ()
local cur="${COMP_WORDS[COMP_CWORD]}"
case "$cur" in
local cur="${COMP_WORDS[COMP_CWORD]}"
case "$cur" in
+ -*)
+ __tgcomp "
+ --populate
+ "
+ ;;
*)
__tgcomp "$(__tg_remotes)"
esac
*)
__tgcomp "$(__tg_remotes)"
esac
@@
-376,7
+387,15
@@
_tg_remote ()
_tg_summary ()
{
_tg_summary ()
{
- COMPREPLY=()
+ local cur="${COMP_WORDS[COMP_CWORD]}"
+
+ case "$cur" in
+ *)
+ __tgcomp "
+ --graphviz
+ -t
+ "
+ esac
}
_tg_update ()
}
_tg_update ()