git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to ignore space when using 'git send-email' command
@ 2009-07-13 20:53 n179911
  2009-07-16 10:09 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: n179911 @ 2009-07-13 20:53 UTC (permalink / raw)
  To: git

Hi,

I am using git version 1.6.1.

When i use 'git send-email' command how can I specify it to 'ignore-all-space'?
I see there is an 'ignore-all-space' option in 'git diff' and 'git
format-patch', but there is not such option for git send-email.

I have already commit my changes to my local branch, so I can't use
'git diff' , 'git format-patch' to display the different which ignore
white spaces.

Can you please tell me how can I send-email which ignore white-spaces?

Thank you.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to ignore space when using 'git send-email' command
  2009-07-13 20:53 How to ignore space when using 'git send-email' command n179911
@ 2009-07-16 10:09 ` Jeff King
  2009-07-16 20:57   ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff King @ 2009-07-16 10:09 UTC (permalink / raw)
  To: n179911; +Cc: git

On Mon, Jul 13, 2009 at 01:53:11PM -0700, n179911 wrote:

> When i use 'git send-email' command how can I specify it to
> 'ignore-all-space'?

Have you tried:

  git send-email --ignore-all-space origin

?

> I see there is an 'ignore-all-space' option in 'git diff' and 'git
> format-patch', but there is not such option for git send-email.

There are two ways of running send-email:

  1. format-patch your patches into a file or directory, and then
     send-email on it. In this case, you need to --ignore-all-space when
     doing the format-patch, which is what is generating the patches.

  2. give send-email revision arguments, which are fed to format-patch
     (which is what I showed above).  In this case, you can give
     format-patch arguments directly to send-email.

Does that help?

-Peff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to ignore space when using 'git send-email' command
  2009-07-16 10:09 ` Jeff King
@ 2009-07-16 20:57   ` Junio C Hamano
  2009-07-16 21:00     ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2009-07-16 20:57 UTC (permalink / raw)
  To: Jeff King; +Cc: n179911, git

Jeff King <peff@peff.net> writes:

> On Mon, Jul 13, 2009 at 01:53:11PM -0700, n179911 wrote:
>
>> When i use 'git send-email' command how can I specify it to
>> 'ignore-all-space'?
>
> Have you tried:
>
>   git send-email --ignore-all-space origin
>
> ?
>
>> I see there is an 'ignore-all-space' option in 'git diff' and 'git
>> format-patch', but there is not such option for git send-email.
>
> There are two ways of running send-email:
>
>   1. format-patch your patches into a file or directory, and then
>      send-email on it. In this case, you need to --ignore-all-space when
>      doing the format-patch, which is what is generating the patches.
>
>   2. give send-email revision arguments, which are fed to format-patch
>      (which is what I showed above).  In this case, you can give
>      format-patch arguments directly to send-email.
>
> Does that help?

That may help but it is generally a bad idea to send a patch generated
with ignore-all-spaces and other options, as it means that the receiving
end will get changes that not even you the sender had any chance to test.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to ignore space when using 'git send-email' command
  2009-07-16 20:57   ` Junio C Hamano
@ 2009-07-16 21:00     ` Jeff King
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff King @ 2009-07-16 21:00 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: n179911, git

On Thu, Jul 16, 2009 at 01:57:03PM -0700, Junio C Hamano wrote:

> >   2. give send-email revision arguments, which are fed to format-patch
> >      (which is what I showed above).  In this case, you can give
> >      format-patch arguments directly to send-email.
> >
> > Does that help?
> 
> That may help but it is generally a bad idea to send a patch generated
> with ignore-all-spaces and other options, as it means that the receiving
> end will get changes that not even you the sender had any chance to test.

True. You are probably better off using "rebase -i" to fix your commits,
testing them, then sending in the result.

-Peff

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-16 21:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-13 20:53 How to ignore space when using 'git send-email' command n179911
2009-07-16 10:09 ` Jeff King
2009-07-16 20:57   ` Junio C Hamano
2009-07-16 21:00     ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).