git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [TopGit PATCH] tg-push: add bash completion
@ 2009-05-26 22:37 Bert Wesarg
  2009-05-26 23:31 ` [TopGit PATCH v2] " Bert Wesarg
  0 siblings, 1 reply; 3+ messages in thread
From: Bert Wesarg @ 2009-05-26 22:37 UTC (permalink / raw
  To: Petr Baudis; +Cc: Bert Wesarg, git, martin f krafft, Uwe Kleine-Koenig

Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>

---
 contrib/tg-completion.bash |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/contrib/tg-completion.bash b/contrib/tg-completion.bash
index de8a7b5..5b9ef31 100755
--- a/contrib/tg-completion.bash
+++ b/contrib/tg-completion.bash
@@ -370,6 +370,26 @@ _tg_patch ()
 	esac
 }
 
+_tg_push ()
+{
+	local cur="${COMP_WORDS[COMP_CWORD]}"
+
+	__tg_complete_arg "-r" && {
+		__tgcomp "$(__tg_remotes)"
+		return
+	}
+
+	case "$cur" in
+	-*)
+		__tgcomp "
+			-r
+		"
+		;;
+	*)
+		__tgcomp "$(__tg_topics)"
+	esac
+}
+
 _tg_remote ()
 {
 	local cur="${COMP_WORDS[COMP_CWORD]}"
@@ -449,6 +469,7 @@ _tg ()
 	info)        _tg_info ;;
 	mail)        _tg_mail ;;
 	patch)       _tg_patch ;;
+	push)        _tg_push ;;
 	remote)      _tg_remote ;;
 	summary)     _tg_summary ;;
 	update)      _tg_update ;;
-- 
tg: (b725fc9..) bw/push-completion (depends on: master)

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [TopGit PATCH v2] tg-push: add bash completion
  2009-05-26 22:37 [TopGit PATCH] tg-push: add bash completion Bert Wesarg
@ 2009-05-26 23:31 ` Bert Wesarg
  2009-06-02 20:44   ` Bert Wesarg
  0 siblings, 1 reply; 3+ messages in thread
From: Bert Wesarg @ 2009-05-26 23:31 UTC (permalink / raw
  To: Petr Baudis; +Cc: Bert Wesarg, git, martin f krafft, Uwe Kleine-Koenig

Include all options.

Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>

---
 contrib/tg-completion.bash |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/contrib/tg-completion.bash b/contrib/tg-completion.bash
index de8a7b5..0ee233c 100755
--- a/contrib/tg-completion.bash
+++ b/contrib/tg-completion.bash
@@ -370,6 +370,29 @@ _tg_patch ()
 	esac
 }
 
+_tg_push ()
+{
+	local cur="${COMP_WORDS[COMP_CWORD]}"
+
+	__tg_complete_arg "-r" && {
+		__tgcomp "$(__tg_remotes)"
+		return
+	}
+
+	case "$cur" in
+	-*)
+		__tgcomp "
+			--no-deps
+			--dry-run
+			--tgish-only
+			-r
+		"
+		;;
+	*)
+		__tgcomp "$(__tg_topics)"
+	esac
+}
+
 _tg_remote ()
 {
 	local cur="${COMP_WORDS[COMP_CWORD]}"
@@ -449,6 +472,7 @@ _tg ()
 	info)        _tg_info ;;
 	mail)        _tg_mail ;;
 	patch)       _tg_patch ;;
+	push)        _tg_push ;;
 	remote)      _tg_remote ;;
 	summary)     _tg_summary ;;
 	update)      _tg_update ;;
-- 
tg: (b725fc9..) bw/push-completion (depends on: master)

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [TopGit PATCH v2] tg-push: add bash completion
  2009-05-26 23:31 ` [TopGit PATCH v2] " Bert Wesarg
@ 2009-06-02 20:44   ` Bert Wesarg
  0 siblings, 0 replies; 3+ messages in thread
From: Bert Wesarg @ 2009-06-02 20:44 UTC (permalink / raw
  To: Petr Baudis; +Cc: Bert Wesarg, git, martin f krafft, Uwe Kleine-Koenig

Ping.

Regards,
Bert

On Wed, May 27, 2009 at 01:31, Bert Wesarg <bert.wesarg@googlemail.com> wrote:
> Include all options.
>
> Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
>
> ---
>  contrib/tg-completion.bash |   24 ++++++++++++++++++++++++
>  1 files changed, 24 insertions(+), 0 deletions(-)
>
> diff --git a/contrib/tg-completion.bash b/contrib/tg-completion.bash
> index de8a7b5..0ee233c 100755
> --- a/contrib/tg-completion.bash
> +++ b/contrib/tg-completion.bash
> @@ -370,6 +370,29 @@ _tg_patch ()
>        esac
>  }
>
> +_tg_push ()
> +{
> +       local cur="${COMP_WORDS[COMP_CWORD]}"
> +
> +       __tg_complete_arg "-r" && {
> +               __tgcomp "$(__tg_remotes)"
> +               return
> +       }
> +
> +       case "$cur" in
> +       -*)
> +               __tgcomp "
> +                       --no-deps
> +                       --dry-run
> +                       --tgish-only
> +                       -r
> +               "
> +               ;;
> +       *)
> +               __tgcomp "$(__tg_topics)"
> +       esac
> +}
> +
>  _tg_remote ()
>  {
>        local cur="${COMP_WORDS[COMP_CWORD]}"
> @@ -449,6 +472,7 @@ _tg ()
>        info)        _tg_info ;;
>        mail)        _tg_mail ;;
>        patch)       _tg_patch ;;
> +       push)        _tg_push ;;
>        remote)      _tg_remote ;;
>        summary)     _tg_summary ;;
>        update)      _tg_update ;;
> --
> tg: (b725fc9..) bw/push-completion (depends on: master)
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-02 20:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-26 22:37 [TopGit PATCH] tg-push: add bash completion Bert Wesarg
2009-05-26 23:31 ` [TopGit PATCH v2] " Bert Wesarg
2009-06-02 20:44   ` Bert Wesarg

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).