# [PATCH (topgit) 1/2] tg-completion: complete options for `tg summary`

4 messages from 2009-01-05 to 2009-01-05. Participants: Kirill Smelkov, martin f krafft.
Thread: https://gitlist.dev/t/16994

## Kirill Smelkov, 2009-01-05 15:08

Subject: [PATCH (topgit) 0/2] tg-completion.bash update
Message-ID: <cover.1231167904.git.kirr@landau.phys.spbu.ru>
URL: https://gitlist.dev/e/cover.1231167904.git.kirr%40landau.phys.spbu.ru

```
Kirill Smelkov (2):
  tg-completion: complete options for `tg summary`
  tg-completion: complete options for `tg remote`

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

```

## Kirill Smelkov, 2009-01-05 15:08

Subject: [PATCH (topgit) 1/2] tg-completion: complete options for `tg summary`
Message-ID: <0de9cf9b84a63a4c33714806aa7eb70cb0d77021.1231167904.git.kirr@landau.phys.spbu.ru>
URL: https://gitlist.dev/e/0de9cf9b84a63a4c33714806aa7eb70cb0d77021.1231167904.git.kirr%40landau.phys.spbu.ru
In-Reply-To: <cover.1231167904.git.kirr@landau.phys.spbu.ru>

```
Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
---
 contrib/tg-completion.bash |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/contrib/tg-completion.bash b/contrib/tg-completion.bash
index 67f820e..4d69c05 100755
--- a/contrib/tg-completion.bash
+++ b/contrib/tg-completion.bash
@@ -376,7 +376,15 @@ _tg_remote ()
 
 _tg_summary ()
 {
-	COMPREPLY=()
+	local cur="${COMP_WORDS[COMP_CWORD]}"
+
+	case "$cur" in
+	*)
+		__tgcomp "
+			--graphviz
+			-t
+		"
+	esac
 }
 
 _tg_update ()
-- 
1.6.1.40.g8ea6a

```

## Kirill Smelkov, 2009-01-05 15:08

Subject: [PATCH (topgit) 2/2] tg-completion: complete options for `tg remote`
Message-ID: <954f3890c44839e0fe3f6bcbb8d477efc35292c8.1231167904.git.kirr@landau.phys.spbu.ru>
URL: https://gitlist.dev/e/954f3890c44839e0fe3f6bcbb8d477efc35292c8.1231167904.git.kirr%40landau.phys.spbu.ru
In-Reply-To: <cover.1231167904.git.kirr@landau.phys.spbu.ru>

```
Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
---
 contrib/tg-completion.bash |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/contrib/tg-completion.bash b/contrib/tg-completion.bash
index 4d69c05..9641d04 100755
--- a/contrib/tg-completion.bash
+++ b/contrib/tg-completion.bash
@@ -369,6 +369,11 @@ _tg_remote ()
 	local cur="${COMP_WORDS[COMP_CWORD]}"
 
 	case "$cur" in
+	-*)
+		__tgcomp "
+			--populate
+		"
+		;;
 	*)
 		__tgcomp "$(__tg_remotes)"
 	esac
-- 
1.6.1.40.g8ea6a

```

## martin f krafft, 2009-01-05 15:49

Subject: Re: [PATCH (topgit) 0/2] tg-completion.bash update
Message-ID: <20090105154902.GC26178@piper.oerlikon.madduck.net>
URL: https://gitlist.dev/e/20090105154902.GC26178%40piper.oerlikon.madduck.net
In-Reply-To: <cover.1231167904.git.kirr@landau.phys.spbu.ru>

```
also sprach Kirill Smelkov <kirr@landau.phys.spbu.ru> [2009.01.05.1608 +0100]:
> Kirill Smelkov (2):
>   tg-completion: complete options for `tg summary`
>   tg-completion: complete options for `tg remote`

Pushed; thanks.

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"alles sollte so einfach, wie möglich gemacht sein,
 aber nicht einfacher."
                                                    -- albert einstein
 
spamtraps: madduck.bogus@madduck.net

```
