* PATCH: _dpatch-edit-patch
@ 2007-09-29 10:43 Clint Adams
2007-09-29 21:19 ` Clint Adams
0 siblings, 1 reply; 6+ messages in thread
From: Clint Adams @ 2007-09-29 10:43 UTC (permalink / raw)
To: zsh-workers; +Cc: jblache
dpatch-edit-patch completion by Julien BLACHE.
Index: Completion/Debian/Command/_dpatch-edit-patch
===================================================================
RCS file: Completion/Debian/Command/_dpatch-edit-patch
diff -N Completion/Debian/Command/_dpatch-edit-patch
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Completion/Debian/Command/_dpatch-edit-patch 29 Sep 2007 10:40:44 -0000
@@ -0,0 +1,17 @@
+#compdef dpatch-edit-patch
+
+_arguments \
+ '(-d --description)'{-d,--description=}'[description for the new patch, if applicable]' \
+ '(-o --outdir)'{-o,--outdir=}'[output directory for patches]:Patch output directory:_files -/' \
+ '(-s --sourcedir)'{-s,--sourcedir=}'[source directory]:Source directory:_files -/' \
+ '(-t --tmpdir)'{-t,--tmpdir=}'[temporary directory]:Temporary directory:_files -/' \
+ '(-p --stampdir)'{-p,--stampdir=}'[stamp directory]:Stamp directory:_files -/' \
+ '(-e --exclude)'{-e,--exclude}'[list of files and directories to be excluded]:Excluded files and directories:_files' \
+ '(-b --debianonly)'{-b,--debianonly=}'[unpack .orig.tar.gz before invoking the shell]:Path to .orig.tar.gz:_files' \
+ '(-k --keeptemp)'{-k,--keeptemp}'[keep working source tree after exit]' \
+ '(-c --clean)'{-c,--clean}'[clean the current directory]' \
+ '(-l --shell)'{-l,--shell=}'[shell to be invoked]' \
+ '(-P --origtargzpath)'{-P,--origtargzpath=}'[colon-separated list of paths containing upstream tarballs, use with -b]:Path to upstream tarballs:_files -/' \
+ '(-h --help)'{-h,--help}'[Help text]' \
+ '1:Patch name:_files -W $PWD/debian/patches -g "*.dpatch"' \
+ '2:Base patch name:_files -W $PWD/debian/patches -g "*.dpatch"'
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PATCH: _dpatch-edit-patch
2007-09-29 10:43 PATCH: _dpatch-edit-patch Clint Adams
@ 2007-09-29 21:19 ` Clint Adams
2007-09-29 21:33 ` Julien BLACHE
0 siblings, 1 reply; 6+ messages in thread
From: Clint Adams @ 2007-09-29 21:19 UTC (permalink / raw)
To: zsh-workers, jblache
On Sat, Sep 29, 2007 at 06:43:14AM -0400, Clint Adams wrote:
> dpatch-edit-patch completion by Julien BLACHE.
This
1) lowercases some capitals
2) completes a colon-separated path list for -P
3) fails to actually complete shells after -l ; is there call for a
generic utility function that parses /etc/shells or $(getent passwd)
or something to get a list of shells?
Julien, does dpatch-edit-patch break with the .dpatch suffix on the
command-line or does it work whether or not it's there?
Index: Completion/Debian/Command/_dpatch-edit-patch
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_dpatch-edit-patch,v
retrieving revision 1.1
diff -u -r1.1 _dpatch-edit-patch
--- Completion/Debian/Command/_dpatch-edit-patch 29 Sep 2007 11:08:47 -0000 1.1
+++ Completion/Debian/Command/_dpatch-edit-patch 29 Sep 2007 21:13:05 -0000
@@ -2,16 +2,16 @@
_arguments \
'(-d --description)'{-d,--description=}'[description for the new patch, if applicable]' \
- '(-o --outdir)'{-o,--outdir=}'[output directory for patches]:Patch output directory:_files -/' \
- '(-s --sourcedir)'{-s,--sourcedir=}'[source directory]:Source directory:_files -/' \
- '(-t --tmpdir)'{-t,--tmpdir=}'[temporary directory]:Temporary directory:_files -/' \
- '(-p --stampdir)'{-p,--stampdir=}'[stamp directory]:Stamp directory:_files -/' \
- '(-e --exclude)'{-e,--exclude}'[list of files and directories to be excluded]:Excluded files and directories:_files' \
- '(-b --debianonly)'{-b,--debianonly=}'[unpack .orig.tar.gz before invoking the shell]:Path to .orig.tar.gz:_files' \
+ '(-o --outdir)'{-o,--outdir=}'[output directory for patches]:patch output directory:_files -/' \
+ '(-s --sourcedir)'{-s,--sourcedir=}'[source directory]:source directory:_files -/' \
+ '(-t --tmpdir)'{-t,--tmpdir=}'[temporary directory]:temporary directory:_files -/' \
+ '(-p --stampdir)'{-p,--stampdir=}'[stamp directory]:stamp directory:_files -/' \
+ '(-e --exclude)'{-e,--exclude}'[list of files and directories to be excluded]:excluded files and directories:_files' \
+ '(-b --debianonly)'{-b,--debianonly=}'[unpack .orig.tar.gz before invoking the shell]:path to .orig.tar.gz:_files' \
'(-k --keeptemp)'{-k,--keeptemp}'[keep working source tree after exit]' \
'(-c --clean)'{-c,--clean}'[clean the current directory]' \
- '(-l --shell)'{-l,--shell=}'[shell to be invoked]' \
- '(-P --origtargzpath)'{-P,--origtargzpath=}'[colon-separated list of paths containing upstream tarballs, use with -b]:Path to upstream tarballs:_files -/' \
- '(-h --help)'{-h,--help}'[Help text]' \
- '1:Patch name:_files -W $PWD/debian/patches -g "*.dpatch"' \
- '2:Base patch name:_files -W $PWD/debian/patches -g "*.dpatch"'
+ '(-l --shell)'{-l,--shell=}'[shell to be invoked]:shell:' \
+ '(-P --origtargzpath)'{-P,--origtargzpath=}'[colon-separated list of paths containing upstream tarballs, use with -b]:path to upstream tarballs:_dir_list' \
+ '(-h --help)'{-h,--help}'[help text]' \
+ '1:patch name:_files -W $PWD/debian/patches -g "*.dpatch"' \
+ '2:base patch name:_files -W $PWD/debian/patches -g "*.dpatch"'
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PATCH: _dpatch-edit-patch
2007-09-29 21:19 ` Clint Adams
@ 2007-09-29 21:33 ` Julien BLACHE
2007-09-29 21:52 ` Clint Adams
0 siblings, 1 reply; 6+ messages in thread
From: Julien BLACHE @ 2007-09-29 21:33 UTC (permalink / raw)
To: zsh-workers; +Cc: jblache
Clint Adams <clint@zsh.org> wrote:
Hi,
> Julien, does dpatch-edit-patch break with the .dpatch suffix on the
> command-line or does it work whether or not it's there?
No, it doesn't, for convenience.
JB.
--
Julien BLACHE <jblache@debian.org> | Debian, because code matters more
Debian & GNU/Linux Developer | <http://www.debian.org>
Public key available on <http://www.jblache.org> - KeyID: F5D6 5169
GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PATCH: _dpatch-edit-patch
2007-09-29 21:33 ` Julien BLACHE
@ 2007-09-29 21:52 ` Clint Adams
2007-09-29 21:55 ` Julien BLACHE
0 siblings, 1 reply; 6+ messages in thread
From: Clint Adams @ 2007-09-29 21:52 UTC (permalink / raw)
To: Julien BLACHE; +Cc: zsh-workers
On Sat, Sep 29, 2007 at 11:33:04PM +0200, Julien BLACHE wrote:
> No, it doesn't, for convenience.
Does
'blah:blah:_files -W $PWD/debian/patches -g \*.dpatch\(-.\:r\)'
do the right thing?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PATCH: _dpatch-edit-patch
2007-09-29 21:52 ` Clint Adams
@ 2007-09-29 21:55 ` Julien BLACHE
2007-09-29 21:58 ` Clint Adams
0 siblings, 1 reply; 6+ messages in thread
From: Julien BLACHE @ 2007-09-29 21:55 UTC (permalink / raw)
To: zsh-workers
Clint Adams <clint@zsh.org> wrote:
Hi,
> Does
>
> 'blah:blah:_files -W $PWD/debian/patches -g \*.dpatch\(-.\:r\)'
>
> do the right thing?
Yep, works just fine !
JB.
--
Julien BLACHE <jblache@debian.org> | Debian, because code matters more
Debian & GNU/Linux Developer | <http://www.debian.org>
Public key available on <http://www.jblache.org> - KeyID: F5D6 5169
GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PATCH: _dpatch-edit-patch
2007-09-29 21:55 ` Julien BLACHE
@ 2007-09-29 21:58 ` Clint Adams
0 siblings, 0 replies; 6+ messages in thread
From: Clint Adams @ 2007-09-29 21:58 UTC (permalink / raw)
To: Julien BLACHE; +Cc: zsh-workers
On Sat, Sep 29, 2007 at 11:55:08PM +0200, Julien BLACHE wrote:
> Yep, works just fine !
Index: Completion/Debian/Command/_dpatch-edit-patch
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_dpatch-edit-patch,v
retrieving revision 1.2
diff -u -r1.2 _dpatch-edit-patch
--- Completion/Debian/Command/_dpatch-edit-patch 29 Sep 2007 21:21:42 -0000 1.2
+++ Completion/Debian/Command/_dpatch-edit-patch 29 Sep 2007 21:57:48 -0000
@@ -13,5 +13,5 @@
'(-l --shell)'{-l,--shell=}'[shell to be invoked]:shell:' \
'(-P --origtargzpath)'{-P,--origtargzpath=}'[colon-separated list of paths containing upstream tarballs, use with -b]:path to upstream tarballs:_dir_list' \
'(-h --help)'{-h,--help}'[help text]' \
- '1:patch name:_files -W $PWD/debian/patches -g "*.dpatch"' \
- '2:base patch name:_files -W $PWD/debian/patches -g "*.dpatch"'
+ '1:patch name:_files -W $PWD/debian/patches -g \*.dpatch\(-.\:r\)' \
+ '2:base patch name:_files -W $PWD/debian/patches -g \*.dpatch\(-.\:r\)'
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-09-29 21:58 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-29 10:43 PATCH: _dpatch-edit-patch Clint Adams
2007-09-29 21:19 ` Clint Adams
2007-09-29 21:33 ` Julien BLACHE
2007-09-29 21:52 ` Clint Adams
2007-09-29 21:55 ` Julien BLACHE
2007-09-29 21:58 ` Clint Adams
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).