how to generate patch with diff and ignore svn files

  • Follow


Dear all:
I use "diff -rupN" to generate the patch file but I find diff will
also compare the information that keep in svn files.
how could I tell diff not to generate patch without comparing svn
files?
appreciate your help,
miloody
0
Reply miloody 8/3/2010 12:35:02 PM

On Tue, 03 Aug 2010 05:35:02 -0700, miloody wrote:

> Dear all:
> I use "diff -rupN" to generate the patch file but I find diff will also
> compare the information that keep in svn files. how could I tell diff
> not to generate patch without comparing svn files?
> appreciate your help,
> miloody

'--exclude' could help.


0
Reply WANG 8/4/2010 8:18:23 AM


hi
On 8=E6=9C=884=E6=97=A5, =E4=B8=8B=E5=8D=884=E6=99=8218=E5=88=86, WANG Cong=
 <xiyou.wangc...@gmail.com> wrote:
> On Tue, 03 Aug 2010 05:35:02 -0700, miloody wrote:
> > Dear all:
> > I use "diff -rupN" to generate the patch file but I find diff will also
> > compare the information that keep in svn files. how could I tell diff
> > not to generate patch without comparing svn files?
> > appreciate your help,
> > miloody
>
> '--exclude' could help.

when I man diff, I cannot see this option.
Would you mind telling me where the usage it is?
appreciate your help,
miloody
0
Reply miloody 8/5/2010 3:39:29 AM

Wed, 04 Aug 2010 20:39:29 -0700, miloody did cat :

> hi
> On 8月4日, 下午4時18分, WANG Cong <xiyou.wangc...@gmail.com> wrote:
>> On Tue, 03 Aug 2010 05:35:02 -0700, miloody wrote:
>> > Dear all:
>> > I use "diff -rupN" to generate the patch file but I find diff will
>> > also compare the information that keep in svn files. how could I tell
>> > diff not to generate patch without comparing svn files? appreciate
>> > your help,
>> > miloody
>>
>> '--exclude' could help.
> 
> when I man diff, I cannot see this option. Would you mind telling me
> where the usage it is? appreciate your help,
> miloody

this is on a GNU/Linux system:
----
$ man -P cat diff | grep -C 1 xclude
       -x PAT  --exclude=PAT
              Exclude files that match PAT.

       -X FILE  --exclude-from=FILE
              Exclude files that match any pattern in FILE
----

now, maybe your system doesn't have that 'diff'?
0
Reply Loki 8/5/2010 7:03:42 AM

hi:
On 8=E6=9C=885=E6=97=A5, =E4=B8=8B=E5=8D=883=E6=99=8203=E5=88=86, Loki Harf=
agr <l...@thedarkdesign.free.fr.INVALID>
wrote:
> Wed, 04 Aug 2010 20:39:29 -0700, miloody did cat=C2=A0:
>
> > hi
> > On 8=E6=9C=884=E6=97=A5, =E4=B8=8B=E5=8D=884=E6=99=8218=E5=88=86, WANG =
Cong <xiyou.wangc...@gmail.com> wrote:
> >> On Tue, 03 Aug 2010 05:35:02 -0700, miloody wrote:
> >> > Dear all:
> >> > I use "diff -rupN" to generate the patch file but I find diff will
> >> > also compare the information that keep in svn files. how could I tel=
l
> >> > diff not to generate patch without comparing svn files? appreciate
> >> > your help,
> >> > miloody
>
> >> '--exclude' could help.
>
> > when I man diff, I cannot see this option. Would you mind telling me
> > where the usage it is? appreciate your help,
> > miloody
>
> this is on a GNU/Linux system:
> ----
> $ man -P cat diff | grep -C 1 xclude
> =C2=A0 =C2=A0 =C2=A0 =C2=A0-x PAT =C2=A0--exclude=3DPAT
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Exclude files that match=
 PAT.
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0-X FILE =C2=A0--exclude-from=3DFILE
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Exclude files that match=
 any pattern in FILE
> ----
>
> now, maybe your system doesn't have that 'diff'?

I found it :)
appreciate your help,
miloody
0
Reply miloody 8/6/2010 7:00:53 AM

4 Replies
608 Views

(page loaded in 0.057 seconds)

Similiar Articles:







7/21/2012 6:51:36 PM


Reply: