lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CM 1.1 git question


From: Johannes Schindelin
Subject: Re: CM 1.1 git question
Date: Wed, 18 Feb 2009 16:13:17 +0100 (CET)
User-agent: Alpine 1.00 (DEB 882 2007-12-20)

Hi,

On Wed, 18 Feb 2009, Graham Percival wrote:

> On Wed, Feb 18, 2009 at 03:57:39PM +0100, Johannes Schindelin wrote:
> > Hi.
> > 
> > On Wed, 18 Feb 2009, Jonathan Kulp wrote:
> > 
> > >  Am I correct in thinking that [git format-patch] creates the patch by 
> > > comparing my local (changed) file with the corresponding file in the 
> > > remote git repository?
> > 
> > No, it creates patches from commits.  So you use Git as usual:
> > 
> >     (inspect your changes)
> >     $ git diff
> >     (stage the modified files)
> >     $ git add <files>
> >     (commit the stuff)
> >     $ git commit
> >     (now generate patches from, say, the last 3 commits)
> >     $ git format-patch -3
> > 
> > From the rest of your mail I see that you made work hard on yourself by 
> > not using Git at all...
> 
> Yes, definitely.  I must admit that I think I forgot to explain
> these steps in the CG.  Could somebody take a look at it
> (Documentation/devel/starting-git.itexi or git-starting.itexi) and
> add the "git add / git commit" commands?

Sorry, I am too swamped with work this week.

> And was there a way to get "git format-patch" to produce individual 
> patches for every commit made since the last pull?  I'd rather not have 
> new committers trying to remember how many commits they made, although I 
> suppose that they'd generally just make one commit with everything 
> included...

Yes:

        $ git format-patch origin/web

will produce individual patches (as -3 would have done), from everything 
not yet in origin/web.

Ciao,
Dscho





reply via email to

[Prev in Thread] Current Thread [Next in Thread]