From: Alex Riesen Date: Thu, 28 Aug 2008 14:44:45 GMT Subject: Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins Message-ID: <81b0412b0808280744q7ab0aa9l2064117c4e147351@mail.gmail.com> In-Reply-To: <20080828065124.GB16186@elte.hu> 2008/8/28 Ingo Molnar : > * Jeff Garzik 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 " instead of "--stdout", to split in patches).