[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do patch determine which file will be patched?



I see.
It seems that patch is smart to find whether aaa/bbb/main.c
or bbb/main.c is need to be patched, isn't it?

On Tuesday 16 October 2001 19:02, Liu Tao wrote:
> For example, if the patch file "patch1" is like
>
> diff -u --recursive --new-file aaa/bbb/main.c bbb/main.c
> --- aaa/bbb/main.c	Tue Oct 16 17:13:04 2001
> +++ bbb/main.c	Tue Oct 16 17:55:57 2001
> ...
>
> and "patch2":
> diff -u --recursive --new-file bbb/main.c aaa/bbb/main.c
> --- bbb/main.c	Tue Oct 16 17:13:04 2001
> +++ aaa/bbb/main.c	Tue Oct 16 17:55:57 2001
> ...
>
> both "patch -p0 < patch1" and "patch -p0 < patch2" patches bbb/main.c ?



Reply to: