zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] Problem in patchutils completion
@ 2017-01-28  8:54 Ismail Donmez
  2017-02-06 13:05 ` Ismail Donmez
  0 siblings, 1 reply; 3+ messages in thread
From: Ismail Donmez @ 2017-01-28  8:54 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 451 bytes --]

Hello,

We've received the following bug report & patch in openSUSE:

<quote>

Zsh ships completions for patchutils. However, there are two bugs
related to the filterdiff command:
1. arguments for "grepdiff|filterdiff" don't combine with subsequent
separate arguments for "grepdiff" and "filterdiff", and
2. grepdiff and filterdiff don't complete file paths, even though they should.

</quote>

Patch by Jan Matejek of SUSE attached.

Regards,
ismail

[-- Attachment #2: patchutils.patch --]
[-- Type: application/octet-stream, Size: 1147 bytes --]

--- zsh-5.3/Completion/Unix/Command/_patchutils	
+++ zsh-5.3/Completion/Unix/Command/_patchutils	
@@ -43,6 +43,7 @@ case $service in
       '(-F --files)'{-F+,--files=}'[only list files within specified range]:range'
       '--strip=[remove specified number of pathname components before displaying]:components'
       '--addprefix=[insert specified path prefix before displaying path names]:prefix:_directories'
+      '*:diff file:_files'
     )
   ;|
   grepdiff|lsdiff)
@@ -58,7 +59,6 @@ case $service in
       \*{-v,--verbose}'[verbose operation]' 
       '(-H --with-filename -h --no-filename)'{-H,--with-filename}'[print the name of the patch file containing each patch]'
       '!--filter' '!--grep'
-      '*:diff file:_files'
     )
   ;;
   grepdiff|filterdiff)
@@ -71,7 +71,7 @@ case $service in
       '--as-numbered-lines=[display lines of selected hunks]:line numbers:(before after)'
       "--remove-timestamps[don't include timestamps in output]"
     )
-  ;;
+  ;|
   filterdiff)
     args+=(
       '(-X --exclude-from-file)'{-X+,--exclude-from-file=}'[exclude files matching any pattern listed in specified file]:file:_files'

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Problem in patchutils completion
  2017-01-28  8:54 [PATCH] Problem in patchutils completion Ismail Donmez
@ 2017-02-06 13:05 ` Ismail Donmez
  2017-02-06 13:48   ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Ismail Donmez @ 2017-02-06 13:05 UTC (permalink / raw)
  To: zsh-workers

ping? any comments?

On Sat, Jan 28, 2017 at 9:54 AM, Ismail Donmez <ismail@i10z.com> wrote:
> Hello,
>
> We've received the following bug report & patch in openSUSE:
>
> <quote>
>
> Zsh ships completions for patchutils. However, there are two bugs
> related to the filterdiff command:
> 1. arguments for "grepdiff|filterdiff" don't combine with subsequent
> separate arguments for "grepdiff" and "filterdiff", and
> 2. grepdiff and filterdiff don't complete file paths, even though they should.
>
> </quote>
>
> Patch by Jan Matejek of SUSE attached.
>
> Regards,
> ismail


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Problem in patchutils completion
  2017-02-06 13:05 ` Ismail Donmez
@ 2017-02-06 13:48   ` Peter Stephenson
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Stephenson @ 2017-02-06 13:48 UTC (permalink / raw)
  To: zsh-workers

On Mon, 6 Feb 2017 14:05:24 +0100
Ismail Donmez <ismail@i10z.com> wrote:
> ping? any comments?
> 
> On Sat, Jan 28, 2017 at 9:54 AM, Ismail Donmez <ismail@i10z.com> wrote:
> > Hello,
> >
> > We've received the following bug report & patch in openSUSE:
> >
> > <quote>
> >
> > Zsh ships completions for patchutils. However, there are two bugs
> > related to the filterdiff command:
> > 1. arguments for "grepdiff|filterdiff" don't combine with subsequent
> > separate arguments for "grepdiff" and "filterdiff", and
> > 2. grepdiff and filterdiff don't complete file paths, even though they should.
> >
> > </quote>

I've assumed this is uncontroversial and committed it.

pws


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-06 13:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-28  8:54 [PATCH] Problem in patchutils completion Ismail Donmez
2017-02-06 13:05 ` Ismail Donmez
2017-02-06 13:48   ` Peter Stephenson

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).