From 4882c536e98f68b2ecaecb4ed06f95fde9ed8a75 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Tue, 20 Sep 2005 20:05:34 +0000 Subject: 21740: completion for quilt. --- ChangeLog | 5 +++++ Completion/Unix/Command/_quilt | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 Completion/Unix/Command/_quilt diff --git a/ChangeLog b/ChangeLog index 4326ac75e..45412af1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-09-20 Clint Adams + + * 21740: Completion/Unix/Command/_quilt: completion for + quilt. + 2005-09-20 Wayne Davison * 21739: Src/utils.c: made PROMPT_SP work properly even when diff --git a/Completion/Unix/Command/_quilt b/Completion/Unix/Command/_quilt new file mode 100644 index 000000000..cbb1d90df --- /dev/null +++ b/Completion/Unix/Command/_quilt @@ -0,0 +1,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 -- cgit v1.2.3