Re: How do I get git-format-patch to ignore changes that remove spaces from the end of the line?
- From
Junio C Hamano <junkio@cox.net>
- Date
- Feb 13, 2007, 22:24 UTC
- Message-ID
- <7vhctpwvam.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <45D234C5.5090005@freescale.com>
Timur Tabi <timur@freescale.com> writes:
Show 12 quoted lines
> After I commit my changes, I use git-format-patch to make a patch. I
> then get deltas like this:
>
> * Copyright (C) 1996-2005 Paul Mackerras.
> - *
> + *
> * Adapted for 64bit PowerPC by Dave Engebretsen and Peter Bergner.
> - * {engebret|bergner}@us.ibm.com
> + * {engebret|bergner}@us.ibm.com
> *
>
> I don't want these deltas in my patch.You could revert the change to the editor configuration and rely on "git diff" before committing to point out the whitespace breakage that you newly introduced to the file. Then you would be sending out exactly what you changed.