chiark / gitweb /
tg-patch: add support for generating patches against worktree and index
[topgit.git] / contrib / tg-completion.bash
index 9641d04dea15bbf019fe492417b1aa617b26abe7..de8a7b55d76bcf5059ed4b979e44efd4aaa9918c 100755 (executable)
@@ -359,6 +359,12 @@ _tg_patch ()
        local cur="${COMP_WORDS[COMP_CWORD]}"
 
        case "$cur" in
+       -*)
+               __tgcomp "
+                       -i
+                       -w
+               "
+               ;;
        *)
                __tgcomp "$(__tg_topics)"
        esac