white spaces in a patch
- From
- Mark Ryden <markryde@gmail.com>
- Date
- Dec 17, 2008, 07:31 UTC
- Message-ID
- <dac45060812162331k19272488r4e95e0555e7a6db9@mail.gmail.com>
Hello,
It occurred to me that I prepared some patch for a git tree, and then when testing git-apply on it (on the original tree) I saw some "white spaces" errors. I know that I can run: "git --whitespace=fix apply" on my patch and than create the patch again ; in this way it will be created without white spaces.
Suppose I create a patch file (let's say : patch.txt) 1) Is there a way to check whether there are white spaces in this file without running git-apply? 2) Is there a way to get some messages about that there are white spaces when creating a git patch?
Regards, Mark