Re: Converting commits to patch files? HEAD vs HEAD^

2005-07-09 Thread Catalin Marinas
Junio C Hamano <[EMAIL PROTECTED]> wrote: >> "MS" == Marc Singer <[EMAIL PROTECTED]> writes: > MS> If I've made several commits, I'd like to be able to gather several > MS> together and produce a patch file. Better still, I'd like to be able > MS> to pick a set of discontiguous commits an bund

Re: Converting commits to patch files? HEAD vs HEAD^

2005-07-08 Thread Junio C Hamano
> "MS" == Marc Singer <[EMAIL PROTECTED]> writes: MS> If I've made several commits, I'd like to be able to gather several MS> together and produce a patch file. Better still, I'd like to be able MS> to pick a set of discontiguous commits an bundle them into a single MS> patch. Ought I be usi

Re: Converting commits to patch files? HEAD vs HEAD^

2005-07-08 Thread Linus Torvalds
On Fri, 8 Jul 2005, Marc Singer wrote: > > # git diff HEAD^ HEAD > > This command will produce a diff of the changes I've made. What is > the HEAD^? Does it refer to the commit before the last one made? Yes. The core tools don't understand this syntax, but most of the helper scripts use "gi

Converting commits to patch files? HEAD vs HEAD^

2005-07-08 Thread Marc Singer
Jeff Garzik's guide doesn't appear to explain how to get patches back out of the system. I've successfully commited a set of changes. # git diff HEAD^ HEAD This command will produce a diff of the changes I've made. What is the HEAD^? Does it refer to the commit before the last one made? If