{"thread":{"id":"20101","subject":"How to ignore space when using 'git send-email' command","startedAt":"2009-07-13T20:53:11Z","lastAt":"2009-07-16T21:00:52Z","messageCount":4,"participants":["n179911","Jeff King","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"117917","messageId":"3b9893450907131353o77102b8cx6c8944f6cc45214a@mail.gmail.com","threadId":"20101","inReplyTo":null,"subject":"How to ignore space when using 'git send-email' command","fromName":"n179911","fromEmail":"n179911@gmail.com","sentAt":"2009-07-13T20:53:11Z","receivedAt":"2009-07-13T20:53:11Z","isPatch":false,"sender":{"key":"n179911@gmail.com","avatar":null},"body":"Hi,\n\nI am using git version 1.6.1.\n\nWhen i use 'git send-email' command how can I specify it to 'ignore-all-space'?\nI see there is an 'ignore-all-space' option in 'git diff' and 'git\nformat-patch', but there is not such option for git send-email.\n\nI have already commit my changes to my local branch, so I can't use\n'git diff' , 'git format-patch' to display the different which ignore\nwhite spaces.\n\nCan you please tell me how can I send-email which ignore white-spaces?\n\nThank you.\n"},{"id":"118107","messageId":"20090716100926.GC6742@coredump.intra.peff.net","threadId":"20101","inReplyTo":"3b9893450907131353o77102b8cx6c8944f6cc45214a@mail.gmail.com","subject":"Re: How to ignore space when using 'git send-email' command","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2009-07-16T10:09:26Z","receivedAt":"2009-07-16T10:09:26Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Jul 13, 2009 at 01:53:11PM -0700, n179911 wrote:\n\n> When i use 'git send-email' command how can I specify it to\n> 'ignore-all-space'?\n\nHave you tried:\n\n  git send-email --ignore-all-space origin\n\n?\n\n> I see there is an 'ignore-all-space' option in 'git diff' and 'git\n> format-patch', but there is not such option for git send-email.\n\nThere are two ways of running send-email:\n\n  1. format-patch your patches into a file or directory, and then\n     send-email on it. In this case, you need to --ignore-all-space when\n     doing the format-patch, which is what is generating the patches.\n\n  2. give send-email revision arguments, which are fed to format-patch\n     (which is what I showed above).  In this case, you can give\n     format-patch arguments directly to send-email.\n\nDoes that help?\n\n-Peff\n"},{"id":"118134","messageId":"7v4otc8hy8.fsf@alter.siamese.dyndns.org","threadId":"20101","inReplyTo":"20090716100926.GC6742@coredump.intra.peff.net","subject":"Re: How to ignore space when using 'git send-email' command","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-07-16T20:57:03Z","receivedAt":"2009-07-16T20:57:03Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Jeff King <peff@peff.net> writes:\n\n> On Mon, Jul 13, 2009 at 01:53:11PM -0700, n179911 wrote:\n>\n>> When i use 'git send-email' command how can I specify it to\n>> 'ignore-all-space'?\n>\n> Have you tried:\n>\n>   git send-email --ignore-all-space origin\n>\n> ?\n>\n>> I see there is an 'ignore-all-space' option in 'git diff' and 'git\n>> format-patch', but there is not such option for git send-email.\n>\n> There are two ways of running send-email:\n>\n>   1. format-patch your patches into a file or directory, and then\n>      send-email on it. In this case, you need to --ignore-all-space when\n>      doing the format-patch, which is what is generating the patches.\n>\n>   2. give send-email revision arguments, which are fed to format-patch\n>      (which is what I showed above).  In this case, you can give\n>      format-patch arguments directly to send-email.\n>\n> Does that help?\n\nThat may help but it is generally a bad idea to send a patch generated\nwith ignore-all-spaces and other options, as it means that the receiving\nend will get changes that not even you the sender had any chance to test.\n"},{"id":"118135","messageId":"20090716210051.GA17229@coredump.intra.peff.net","threadId":"20101","inReplyTo":"7v4otc8hy8.fsf@alter.siamese.dyndns.org","subject":"Re: How to ignore space when using 'git send-email' command","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2009-07-16T21:00:52Z","receivedAt":"2009-07-16T21:00:52Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Jul 16, 2009 at 01:57:03PM -0700, Junio C Hamano wrote:\n\n> >   2. give send-email revision arguments, which are fed to format-patch\n> >      (which is what I showed above).  In this case, you can give\n> >      format-patch arguments directly to send-email.\n> >\n> > Does that help?\n> \n> That may help but it is generally a bad idea to send a patch generated\n> with ignore-all-spaces and other options, as it means that the receiving\n> end will get changes that not even you the sender had any chance to test.\n\nTrue. You are probably better off using \"rebase -i\" to fix your commits,\ntesting them, then sending in the result.\n\n-Peff\n"}]}