Re: white spaces in a patch
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 17, 2008, 07:34 UTC
- Message-ID
- <7vej07p84i.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <dac45060812162331k19272488r4e95e0555e7a6db9@mail.gmail.com>
"Mark Ryden" <markryde@gmail.com> writes:
> 1) Is there a way to check whether there are white spaces in this > file without running git-apply?
"sed -n -e '/^+.*[ ]$/p' patch.txt" perhaps?
> 2) Is there a way to get some messages about that there are white spaces > when creating a git patch?
Doesn't "git diff" highlight whitespace errors? That way, you can catch errors before you make a commit that has them.