[bug-patch] Rename canonicalize global variable

2017-02-22 Thread Tim Waugh
Hi, Patch uses a global variable 'canonicalize' as part of its implementation of the --ignore-whitespace flag. In glibc there is a function canonicalize(): https://www.gnu.org/software/libc/manual/html_node/FP-Bit-Twiddling.html#index-canonicalize Attached is a patch to rename the global

Re: [bug-patch] Regression in symbolic link handling

2015-02-18 Thread Tim Waugh
On Wed, 2015-02-18 at 12:49 +0100, Jean Delvare wrote: [...] rpm-4.12.0.1 rpm-4.12.0.1/beecrypt-4.1.2 rpm-4.12.0.1/beecrypt - beecrypt-4.1.2 rpm-4.12.0.1/db-4.8.30 rpm-4.12.0.1/db - db-4.8.30 [...] If we can no longer patch files through symbolic links, that means we have to include the

Re: [bug-patch] Incorrect error when applying git-created patch

2014-08-12 Thread Tim Waugh
On Mon, 2014-08-11 at 18:58 +0200, Andreas Grünbacher wrote: With a binary patch, it succeeds: $ git show --binary | git apply Patch doesn't currently support git binary patches, it only recognizes them. Thanks, this example makes things clearer. Shouldn't it just delete the file in

[bug-patch] diff -r and what constitutes a difference

2011-06-01 Thread Tim Waugh
Imagine this directory tree: . |-- [drwxrwxr-x] a | `-- [drwxrwxr-x] foo | |-- [-rw-rw-r--] file1 | |-- [-rw-rw-r--] file2 | `-- [-rw-rw-r--] file3 `-- [drwxrwxr-x] b `-- [-rw-rw-r--] foo In diffutils-3.0, 'diff -r a b' says this: File a/foo is a directory while