summaryrefslogtreecommitdiffstats
path: root/bash_completion
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2005-09-13 21:01:29 +0000
committerJean Delvare <khali@linux-fr.org>2005-09-13 21:01:29 +0000
commit0df349d659a696582ddc0ef7b81233ee31b9f88d (patch)
tree1f8045e606dff0aaa4acf261047774fccffba94e /bash_completion
parent3b0c0ff09ade3ff448ae48ff2f7ef1eabfc5c6c8 (diff)
downloadquilt-0df349d659a696582ddc0ef7b81233ee31b9f88d.tar.gz
- quilt/annotate.in: New option "-p patch" to stop checking for changes
at the specified rather than the topmost patch. - bash_completion: Support the new -p option. - test/annotation.test: Test the new -p option.
Diffstat (limited to 'bash_completion')
-rw-r--r--bash_completion11
1 files changed, 9 insertions, 2 deletions
diff --git a/bash_completion b/bash_completion
index 6356d22..a6502f8 100644
--- a/bash_completion
+++ b/bash_completion
@@ -132,8 +132,15 @@ _quilt_completion()
esac
;;
annotate)
- _quilt_comfile
- COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -W "-h" -- $cur ) )
+ case $prev in
+ -p)
+ COMPREPLY=( $( compgen -W "$(quilt applied)" -- $cur ) )
+ ;;
+ *)
+ _quilt_comfile
+ COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -W "-p -h" -- $cur ) )
+ ;;
+ esac
;;
applied)
COMPREPLY=( $( compgen -W "-h $(quilt applied)" -- $cur ) )