#595425 patch --dry-run: please keep track of files patched multiple times

Package:
patch
Source:
patch
Description:
Apply a diff file to an original
Submitter:
Jonathan Nieder
Date:
2010-09-03 20:12:04 UTC
Severity:
wishlist
#595425#5
Date:
2010-09-03 20:08:09 UTC
From:
To:
Hi Christoph,

This is the flip side to [1].

Andreas Schwab wrote[2]:

Reproduction recipe:

 $ patch --version | head -1
 GNU patch 2.6.1.85-423d
 $ cd ~/src/linux-2.6
 $ git checkout 2bfc96a12
 $ git clean -fd
 $ wget http://download.gmane.org/gmane.linux.ports.sh.devel/8747/8748
 $ patch -p1 --quiet --dry-run <8748
 $ echo $?
 0
 $ patch -p1 --quiet <8748
 2 out of 2 hunks FAILED -- saving rejects to file include/linux/clkdev.h.rej
 $ echo $?
 1

Thoughts welcome, but I am mostly submitting this so it is not forgotten.

Thanks for keeping patch working nicely.

[1] http://savannah.gnu.org/bugs/?25860
[2] http://thread.gmane.org/gmane.linux.ports.sh.devel/8697/focus=155270