git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Kirill Smelkov <kirr@landau.phys.spbu.ru>
Date
Jan 5, 2009, 15:08 UTC
Message-ID
<0de9cf9b84a63a4c33714806aa7eb70cb0d77021.1231167904.git.kirr@landau.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
Previous: Kirill SmelkovNext: Kirill Smelkov
Message 2 of 4 in “tg-completion.bash update”
  1. 0/2 tg-completion.bash updateKirill Smelkov, Jan 5, 2009
  2. 1/2 tg-completion: complete options for `tg summary`Kirill Smelkov, Jan 5, 2009
  3. 2/2 tg-completion: complete options for `tg remote`Kirill Smelkov, Jan 5, 2009
  4. martin f krafftJan 5, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.