[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