zsh-workers
 help / color / mirror / code / Atom feed
fd475ed4cb7832ca5a85d35faf6bf418dfe0d7ab blob 1141 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
37
38
39
40
41
42
43
44
45
 
#compdef quilt

local -a tmp
local rc

_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=( ${(f)"$(quilt unapplied 2>&1)"} )
        rc=$?
        if (( rc == 0 )); then
          _wanted -V 'unapplied patches' expl 'patch' compadd "${tmp[@]}"
        else
          _message "No unapplied patches"
        fi
        ;;
      (pop)
        tmp=( ${(f)"$(quilt applied 2>&1)"} )
        rc=$?
        if (( rc == 0 )); then
          _wanted -V 'applied patches' expl 'patch' compadd "${tmp[@]}"
        else
          _message "No applied patches"
        fi
        ;;
      (*)
        _files
        ;;
  esac
  ;;
esac
debug log:

solving fd475ed ...
found fd475ed in https://inbox.vuxu.org/zsh-workers/87wrf46u2s.fsf@ft.bewatermyfriend.org/
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/87wrf46u2s.fsf@ft.bewatermyfriend.org/
diff --git a/Completion/Unix/Command/_quilt b/Completion/Unix/Command/_quilt
index a2fd799..fd475ed 100644

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

index at:
100644 fd475ed4cb7832ca5a85d35faf6bf418dfe0d7ab	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).