summaryrefslogtreecommitdiffstats
path: root/bash_completion
diff options
context:
space:
mode:
Diffstat (limited to 'bash_completion')
-rw-r--r--bash_completion14
1 files changed, 12 insertions, 2 deletions
diff --git a/bash_completion b/bash_completion
index 2a3c7c3..92dae8c 100644
--- a/bash_completion
+++ b/bash_completion
@@ -26,7 +26,7 @@ _quilt()
prev=${COMP_WORDS[COMP_CWORD-1]}
# commands (added to patches)
- cmds='add applied delete diff edit files fork import new next \
+ cmds='add applied delete diff edit files fold fork import new next \
patches pop previous push refresh remove series setup \
snapshot top unapplied'
@@ -74,15 +74,25 @@ _quilt()
-P|-c)
COMPREPLY=( $( compgen -W "$patches" -- $cur ) )
;;
+ --diff|--snapshot)
+ COMREPLY=( )
+ ;;
*)
_filedir
- COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -W "-p -P -c -R -z -h" -- $cur ) )
+ COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -W "-p -P -c -R -z -h --snapshot --diff" -- $cur ) )
;;
esac
;;
files)
COMPREPLY=( $( compgen -W "-v $patches" -- $cur ) )
;;
+ fold)
+ case $prev in
+ -p)
+ COMPREPLY=( $( compgen -W "0 1 2 3 4 5 6 7 8 9 10" -- $cur ) )
+ ;;
+ esac
+ ;;
import)
case $prev in
-p)