zsh-workers
 help / color / mirror / code / Atom feed
d12a672f0f157ca43be61877516bd02e7bf8d1ae blob 1060 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
#compdef quilt

_arguments \
  '--trace' \
  '--quiltrc:config file:_files' \
  '--version' \
  ':quilt command:(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)' \
  '*::subcmd:->subcmd' && return 0

case "$state" in
    (subcmd)

  case "$words[1]" in
      (applied|delete|files|graph|header|next|previous|refresh|unapplied)
        _wanted -V 'patches' expl 'patch' compadd ${(f)"$(quilt series)"}
        ;;
      (push)
        tmp=$(quilt unapplied 2>&1)
        if [[ "$tmp[1,40]" != "File series fully applied, ends at patch" ]]; then
          _wanted -V 'unapplied patches' expl 'patch' compadd ${(f)"$(quilt unapplied)"}
        fi
        ;;
      (pop)
        tmp=$(quilt applied 2>&1)
        if [[ "$tmp" != "No patches applied" ]]; then
          _wanted -V 'applied patches' expl 'patch' compadd ${(f)"$(quilt applied)"}
        fi
        ;;
      (*)
        _files
        ;;
  esac
  ;;
esac
debug log:

solving d12a672 ...
found d12a672 in https://inbox.vuxu.org/zsh-workers/20110726225739.GA6008@w500.lan/
found a2fd799 in https://git.vuxu.org/mirror/zsh/
preparing index
index prepared:
100644 a2fd799a6afa3d15af4209adf884ae290e3ddaf4	Completion/Unix/Command/_quilt

applying [1/1] https://inbox.vuxu.org/zsh-workers/20110726225739.GA6008@w500.lan/
diff --git a/Completion/Unix/Command/_quilt b/Completion/Unix/Command/_quilt
index a2fd799..d12a672 100644

Checking patch Completion/Unix/Command/_quilt...
Applied patch Completion/Unix/Command/_quilt cleanly.

index at:
100644 d12a672f0f157ca43be61877516bd02e7bf8d1ae	Completion/Unix/Command/_quilt

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).