Re: [bug-patch] [BUG?] rename patch accepted with --dry-run, rejected without (Re: [PATCH V3] arm & sh: factorised duplicated clkdev.c)
- From
- Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- Date
- Sep 4, 2010, 03:21 UTC
- Message-ID
- <20100904032117.GL17702@game.jcrosoft.org>
- In-Reply-To
- <201009040058.18028.agruen@suse.de>
> > So "git apply" and "patch --dry-run" seem to work only by accident. > > How was this patch generated: with git itself?
I did as usual git format-patch -M -B -C HEAD~
Show 5 quoted lines
> > The fact that "patch --dry-run" may not work for patches that modify the same > file twice is a known defect. I don't know how to solve this in a reasonably > elegant way. Luckily the problem only triggers when people are doing > something "strange" such as concatenating patches.
Best Regards, J.