summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincenzo Tibullo <enzotib@gmail.com>2009-12-12 10:43:24 +0100
committerJean Delvare <jdelvare@suse.de>2009-12-12 14:05:24 +0100
commit6af132b5061f6773f9591ebde625c92a395ebc91 (patch)
tree444c4e5a726cdd7eeabc312ce7c614cbbfe21499
parentf467d717cc1b7a89e63806c3ddfa761e78da55aa (diff)
downloadquilt-6af132b5061f6773f9591ebde625c92a395ebc91.tar.gz
don't show stderr on tab-completion
When using bash TAB completion, such as in "quilt pop <TAB>", if no patch is applied, it shows the standard error of the command "quilt applied" ("No patches applied"), used in the source file bash_completion to get the list of applied patches. Signed-off-by: David Paleino <dapal@debian.org>
-rw-r--r--bash_completion20
1 files changed, 10 insertions, 10 deletions
diff --git a/bash_completion b/bash_completion
index 9fd0ebf..91d3739 100644
--- a/bash_completion
+++ b/bash_completion
@@ -123,7 +123,7 @@ _quilt_completion()
add)
case $prev in
-P)
- COMPREPLY=( $( compgen -W "$(quilt applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "$(quilt applied 2>/dev/null)" -- $cur ) )
;;
*)
_quilt_comfile
@@ -134,7 +134,7 @@ _quilt_completion()
annotate)
case $prev in
-P)
- COMPREPLY=( $( compgen -W "$(quilt applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "$(quilt applied 2>/dev/null)" -- $cur ) )
;;
*)
_quilt_comfile
@@ -143,7 +143,7 @@ _quilt_completion()
esac
;;
applied)
- COMPREPLY=( $( compgen -W "-h $(quilt applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "-h $(quilt applied 2>/dev/null)" -- $cur ) )
;;
delete)
COMPREPLY=( $( compgen -W "-n -r -h --backup $(quilt series)" -- $cur ) )
@@ -154,7 +154,7 @@ _quilt_completion()
COMPREPLY=( $( compgen -W "0 1" -- $cur ) )
;;
-P|--combine)
- COMPREPLY=( $( compgen -W "$(quilt applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "$(quilt applied 2>/dev/null)" -- $cur ) )
;;
--diff|-U|-C)
;;
@@ -171,10 +171,10 @@ _quilt_completion()
files)
case $prev in
--combine)
- COMPREPLY=( $( compgen -W "$(quilt applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "$(quilt applied 2>/dev/null)" -- $cur ) )
;;
*)
- COMPREPLY=( $( compgen -W "-a -l -v -h --combine $(quilt applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "-a -l -v -h --combine $(quilt applied 2>/dev/null)" -- $cur ) )
;;
esac
;;
@@ -198,7 +198,7 @@ _quilt_completion()
COMPREPLY=( $( compgen -W "files" -- $cur ) )
;;
*)
- COMPREPLY=( $( compgen -W "-T -h --all --reduce --lines --edge-labels $(quilt applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "-T -h --all --reduce --lines --edge-labels $(quilt applied 2>/dev/null)" -- $cur ) )
;;
esac
;;
@@ -236,7 +236,7 @@ _quilt_completion()
COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -W "-v -h" -- $cur ) )
;;
pop)
- COMPREPLY=( $( compgen -W "-a -f -R -q -v -h $(quilt applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "-a -f -R -q -v -h $(quilt applied 2>/dev/null)" -- $cur ) )
;;
push)
COMPREPLY=( $( compgen -W "-a -f -q -v -h --leave-rejects --interactive --color $(quilt unapplied)" -- $cur ) )
@@ -249,14 +249,14 @@ _quilt_completion()
-U|-C)
;;
*)
- COMPREPLY=( $( compgen -W "-p -u -U -c -C -f -h $(quilt applied) --no-timestamps --no-index --diffstat --sort --backup --strip-trailing-whitespace" -- $cur ) )
+ COMPREPLY=( $( compgen -W "-p -u -U -c -C -f -h $(quilt applied 2>/dev/null) --no-timestamps --no-index --diffstat --sort --backup --strip-trailing-whitespace" -- $cur ) )
;;
esac
;;
remove)
case $prev in
-P)
- COMPREPLY=( $( compgen -W "$(quilt applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "$(quilt applied 2>/dev/null)" -- $cur ) )
;;
*)
_quilt_comfile