[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-patch] [request] Add option -I <regexp> for matching context
From: |
Andreas Gruenbacher |
Subject: |
Re: [bug-patch] [request] Add option -I <regexp> for matching context |
Date: |
Tue, 29 Dec 2009 19:01:08 +0100 |
User-agent: |
KMail/1.12.2 (Linux/2.6.31.5-0.1-desktop; KDE/4.3.1; i686; ; ) |
On Thursday 12 November 2009 09:00:08 Urs Thuermann wrote:
> [...]
> I would like to see an option -I with an regexp argument, that,
> similar to diff, considers lines in the file to be patched and lines
> in the patch to be matching, if they match the regular expression.
>
> In the example above, you could then call patch as follows
>
> svn diff -c2 foo | patch -I '$Id.*$' foo
>
> to apply the patch successfully. My current (somewhat risky)
> workaround patch -F3 could then be avoided.
This sounds reasonable to me. Would you mind adding this feature request to
the bug list?
https://savannah.gnu.org/bugs/?group=patch
Thanks,
Andreas
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [bug-patch] [request] Add option -I <regexp> for matching context,
Andreas Gruenbacher <=