about summary refs log tree commit diff
path: root/Completion/Unix/Command/_quilt
blob: cbb1d90df645f54cecdff9f2ee62a3633d301325 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#compdef quilt

local _quilt_subcommands expl curcontext="$curcontext"

_arguments \
  '--trace' \
  '--quiltrc:config file:_files' \
  '--version' \
  '*::quilt command:->subcmd' && return 0


 _quilt_subcommands=(add files import previous setup annotate fold mail
 push snapshot applied fork new refresh top delete graph next remove
 unapplied diff grep patches rename upgrade edit header pop series)


if (( CURRENT == 1 )); then
  _describe -t subcommand 'subcommand' _quilt_subcommands
else
  # this part should be tailored for subcmds
  _files
fi