Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Aug 28, 2008, 14:44 UTC
- Message-ID
- <81b0412b0808280744q7ab0aa9l2064117c4e147351@mail.gmail.com>
- In-Reply-To
- <20080828065124.GB16186@elte.hu>
2008/8/28 Ingo Molnar <mingo@elte.hu>:
Show 11 quoted lines
> * Jeff Garzik <jgarzik@pobox.com> wrote: >> >> 'git show' is quite sufficient, as long as I can pipe its output into >> patch(1) or write it to a foo.patch file, which appears to be the >> case. > > the only time git show is not sufficient for me in practice, the > following one is: > > git log --pretty=email -p -1 >
"git show --pretty=email", indeed 8-)
> that's when i want to do precise import/export of patches from/to email. > (but it's rare)
But it does not export them "precisely". You get no patch for merges (even if there were changes). Try using "git format-patch --stdout" (or with "-o <directory>" instead of "--stdout", to split in patches).