chiark / gitweb /
tg-files: list files changed by the topic branch
[topgit.git] / contrib / tg-completion.bash
index 0ee233c4781b1fe8d3a84772c59373e30ed2f06f..48e47c7047c3c7308cd10b5a0327a63e94cd6fb1 100755 (executable)
@@ -344,6 +344,16 @@ _tg_info ()
        esac
 }
 
        esac
 }
 
+_tg_log ()
+{
+       local cur="${COMP_WORDS[COMP_CWORD]}"
+
+       case "$cur" in
+       *)
+               __tgcomp "$(__tg_topics)"
+       esac
+}
+
 _tg_mail ()
 {
        local cur="${COMP_WORDS[COMP_CWORD]}"
 _tg_mail ()
 {
        local cur="${COMP_WORDS[COMP_CWORD]}"
@@ -423,7 +433,12 @@ _tg_summary ()
 
 _tg_update ()
 {
 
 _tg_update ()
 {
-       COMPREPLY=()
+       local cur="${COMP_WORDS[COMP_CWORD]}"
+
+       case "$cur" in
+       *)
+               __tgcomp "$(__tg_topics)"
+       esac
 }
 
 ### }}}
 }
 
 ### }}}
@@ -467,9 +482,11 @@ _tg ()
        delete)      _tg_delete ;;
        depend)      _tg_depend ;;
        export)      _tg_export ;;
        delete)      _tg_delete ;;
        depend)      _tg_depend ;;
        export)      _tg_export ;;
+       files)       _tg_patch ;;
        help)        _tg_help ;;
        import)      _tg_import ;;
        info)        _tg_info ;;
        help)        _tg_help ;;
        import)      _tg_import ;;
        info)        _tg_info ;;
+       log)         _tg_log ;;
        mail)        _tg_mail ;;
        patch)       _tg_patch ;;
        push)        _tg_push ;;
        mail)        _tg_mail ;;
        patch)       _tg_patch ;;
        push)        _tg_push ;;