chiark / gitweb /
tg-log: short cut to git log
[topgit.git] / contrib / tg-completion.bash
index 5aabc922733c1f18b149581f6e60310802e615af..ccf1a32751b0316c7ba193f7bd6cf3815cf96a5c 100755 (executable)
@@ -344,6 +344,16 @@ _tg_info ()
        esac
 }
 
+_tg_log ()
+{
+       local cur="${COMP_WORDS[COMP_CWORD]}"
+
+       case "$cur" in
+       *)
+               __tgcomp "$(__tg_topics)"
+       esac
+}
+
 _tg_mail ()
 {
        local cur="${COMP_WORDS[COMP_CWORD]}"
@@ -475,6 +485,7 @@ _tg ()
        help)        _tg_help ;;
        import)      _tg_import ;;
        info)        _tg_info ;;
+       log)         _tg_log ;;
        mail)        _tg_mail ;;
        patch)       _tg_patch ;;
        push)        _tg_push ;;