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

[kha/safe PATCH] completion bugfix: Place double pipes in front of alternate command.

From
Ted Pavlic <ted@tedpavlic.com>
Date
Jan 23, 2009, 00:26 UTC
Message-ID
<1232670372-20000-1-git-send-email-ted@tedpavlic.com>
In-Reply-To
<20090122232928.GA23456@diana.vm.bytemark.co.uk>
Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
---
This is a patch against 
    git://repo.or.cz/stgit/kha.git stable

Unfortunately, the previous "[StGit PATCH 2/2]" had a small bug in it. A bugfix was posted, but it didn't get picked up in kha/safe. This commit should be applied against kha/safe to fix the problem.

Alternatively, the patch provided in
    <1232642662-12851-1-git-send-email-ted@tedpavlic.com>
is the proper patch to stgit/master.
Sorry for the extra bother.
 stgit/completion.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/stgit/completion.py b/stgit/completion.py
index 56e81c2..38f0670 100644
--- a/stgit/completion.py
+++ b/stgit/completion.py
@@ -130,7 +130,7 @@ def main_switch(commands):
 
 def install():
     return ['complete -o bashdefault -o default -F _stg stg 2>/dev/null \\', [
-            'complete -o default -F _stg stg' ] ]
+            '|| complete -o default -F _stg stg' ] ]
 
 def write_completion(f):
     commands = stgit.commands.get_commands(allow_cached = False)
-- 
1.6.1.213.g28da8
Previous: Karl HasselströmNext: Karl Hasselström
Message 6 of 7 in “Modify bash completion to support help, version, and copyright.”
  1. 1/2 Modify bash completion to support help, version, and copyright.ted@tedpavlic.com, Jan 20, 2009
  2. 2/2 Make bash completion fail to bashdefault before default completion.ted@tedpavlic.com, Jan 20, 2009
  3. Ted PavlicJan 22, 2009
  4. 2/2 Make bash completion fail to bashdefault before default completion.Ted Pavlic, Jan 22, 2009
  5. kha/{stable,safe,experimental} updatedKarl Hasselström, Jan 22, 2009
  6. completion bugfix: Place double pipes in front of alternate command.Ted Pavlic, Jan 23, 2009
  7. Karl HasselströmJan 23, 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.