{"thread":{"id":"19516","subject":"[TopGit PATCH] tg-push: add bash completion","startedAt":"2009-05-26T22:37:08Z","lastAt":"2009-06-02T20:44:56Z","messageCount":3,"participants":["Bert Wesarg"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"114749","messageId":"1243377428-27546-1-git-send-email-bert.wesarg@googlemail.com","threadId":"19516","inReplyTo":null,"subject":"[TopGit PATCH] tg-push: add bash completion","fromName":"Bert Wesarg","fromEmail":"bert.wesarg@googlemail.com","sentAt":"2009-05-26T22:37:08Z","receivedAt":"2009-05-26T22:37:08Z","isPatch":true,"sender":{"key":"bert.wesarg@googlemail.com","avatar":"https://avatars.githubusercontent.com/u/111934?v=4"},"body":"Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>\n\n---\n contrib/tg-completion.bash |   21 +++++++++++++++++++++\n 1 files changed, 21 insertions(+), 0 deletions(-)\n\ndiff --git a/contrib/tg-completion.bash b/contrib/tg-completion.bash\nindex de8a7b5..5b9ef31 100755\n--- a/contrib/tg-completion.bash\n+++ b/contrib/tg-completion.bash\n@@ -370,6 +370,26 @@ _tg_patch ()\n \tesac\n }\n \n+_tg_push ()\n+{\n+\tlocal cur=\"${COMP_WORDS[COMP_CWORD]}\"\n+\n+\t__tg_complete_arg \"-r\" && {\n+\t\t__tgcomp \"$(__tg_remotes)\"\n+\t\treturn\n+\t}\n+\n+\tcase \"$cur\" in\n+\t-*)\n+\t\t__tgcomp \"\n+\t\t\t-r\n+\t\t\"\n+\t\t;;\n+\t*)\n+\t\t__tgcomp \"$(__tg_topics)\"\n+\tesac\n+}\n+\n _tg_remote ()\n {\n \tlocal cur=\"${COMP_WORDS[COMP_CWORD]}\"\n@@ -449,6 +469,7 @@ _tg ()\n \tinfo)        _tg_info ;;\n \tmail)        _tg_mail ;;\n \tpatch)       _tg_patch ;;\n+\tpush)        _tg_push ;;\n \tremote)      _tg_remote ;;\n \tsummary)     _tg_summary ;;\n \tupdate)      _tg_update ;;\n-- \ntg: (b725fc9..) bw/push-completion (depends on: master)\n"},{"id":"114752","messageId":"1243380694-7744-1-git-send-email-bert.wesarg@googlemail.com","threadId":"19516","inReplyTo":"1243377428-27546-1-git-send-email-bert.wesarg@googlemail.com","subject":"[TopGit PATCH v2] tg-push: add bash completion","fromName":"Bert Wesarg","fromEmail":"bert.wesarg@googlemail.com","sentAt":"2009-05-26T23:31:34Z","receivedAt":"2009-05-26T23:31:34Z","isPatch":true,"sender":{"key":"bert.wesarg@googlemail.com","avatar":"https://avatars.githubusercontent.com/u/111934?v=4"},"body":"Include all options.\n\nSigned-off-by: Bert Wesarg <bert.wesarg@googlemail.com>\n\n---\n contrib/tg-completion.bash |   24 ++++++++++++++++++++++++\n 1 files changed, 24 insertions(+), 0 deletions(-)\n\ndiff --git a/contrib/tg-completion.bash b/contrib/tg-completion.bash\nindex de8a7b5..0ee233c 100755\n--- a/contrib/tg-completion.bash\n+++ b/contrib/tg-completion.bash\n@@ -370,6 +370,29 @@ _tg_patch ()\n \tesac\n }\n \n+_tg_push ()\n+{\n+\tlocal cur=\"${COMP_WORDS[COMP_CWORD]}\"\n+\n+\t__tg_complete_arg \"-r\" && {\n+\t\t__tgcomp \"$(__tg_remotes)\"\n+\t\treturn\n+\t}\n+\n+\tcase \"$cur\" in\n+\t-*)\n+\t\t__tgcomp \"\n+\t\t\t--no-deps\n+\t\t\t--dry-run\n+\t\t\t--tgish-only\n+\t\t\t-r\n+\t\t\"\n+\t\t;;\n+\t*)\n+\t\t__tgcomp \"$(__tg_topics)\"\n+\tesac\n+}\n+\n _tg_remote ()\n {\n \tlocal cur=\"${COMP_WORDS[COMP_CWORD]}\"\n@@ -449,6 +472,7 @@ _tg ()\n \tinfo)        _tg_info ;;\n \tmail)        _tg_mail ;;\n \tpatch)       _tg_patch ;;\n+\tpush)        _tg_push ;;\n \tremote)      _tg_remote ;;\n \tsummary)     _tg_summary ;;\n \tupdate)      _tg_update ;;\n-- \ntg: (b725fc9..) bw/push-completion (depends on: master)\n"},{"id":"115279","messageId":"36ca99e90906021344k340b5747q7d45a7b1d98f8f67@mail.gmail.com","threadId":"19516","inReplyTo":"1243380694-7744-1-git-send-email-bert.wesarg@googlemail.com","subject":"Re: [TopGit PATCH v2] tg-push: add bash completion","fromName":"Bert Wesarg","fromEmail":"bert.wesarg@googlemail.com","sentAt":"2009-06-02T20:44:56Z","receivedAt":"2009-06-02T20:44:56Z","isPatch":true,"sender":{"key":"bert.wesarg@googlemail.com","avatar":"https://avatars.githubusercontent.com/u/111934?v=4"},"body":"Ping.\n\nRegards,\nBert\n\nOn Wed, May 27, 2009 at 01:31, Bert Wesarg <bert.wesarg@googlemail.com> wrote:\n> Include all options.\n>\n> Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>\n>\n> ---\n>  contrib/tg-completion.bash |   24 ++++++++++++++++++++++++\n>  1 files changed, 24 insertions(+), 0 deletions(-)\n>\n> diff --git a/contrib/tg-completion.bash b/contrib/tg-completion.bash\n> index de8a7b5..0ee233c 100755\n> --- a/contrib/tg-completion.bash\n> +++ b/contrib/tg-completion.bash\n> @@ -370,6 +370,29 @@ _tg_patch ()\n>        esac\n>  }\n>\n> +_tg_push ()\n> +{\n> +       local cur=\"${COMP_WORDS[COMP_CWORD]}\"\n> +\n> +       __tg_complete_arg \"-r\" && {\n> +               __tgcomp \"$(__tg_remotes)\"\n> +               return\n> +       }\n> +\n> +       case \"$cur\" in\n> +       -*)\n> +               __tgcomp \"\n> +                       --no-deps\n> +                       --dry-run\n> +                       --tgish-only\n> +                       -r\n> +               \"\n> +               ;;\n> +       *)\n> +               __tgcomp \"$(__tg_topics)\"\n> +       esac\n> +}\n> +\n>  _tg_remote ()\n>  {\n>        local cur=\"${COMP_WORDS[COMP_CWORD]}\"\n> @@ -449,6 +472,7 @@ _tg ()\n>        info)        _tg_info ;;\n>        mail)        _tg_mail ;;\n>        patch)       _tg_patch ;;\n> +       push)        _tg_push ;;\n>        remote)      _tg_remote ;;\n>        summary)     _tg_summary ;;\n>        update)      _tg_update ;;\n> --\n> tg: (b725fc9..) bw/push-completion (depends on: master)\n>\n"}]}