Re: How to update a cloned git repository

2012-09-12 Thread Matthieu Moy
"Joachim Schmitz" writes: >> I think it is the-merge-commit^2; contrib/git-resurrect.sh might be >> of interest, too. > > Sorry you lost me, this is greek to me... A commit is an object that contain pointers to its parents. The root commit has no parent. For ordinary commits, there is one parent

RE: How to update a cloned git repository

2012-09-11 Thread Joachim Schmitz
> From: Junio C Hamano [mailto:gits...@pobox.com] > Sent: Tuesday, September 11, 2012 6:06 PM > To: Matthieu Moy > Cc: Joachim Schmitz; git > Subject: Re: How to update a cloned git repository > > Matthieu Moy writes: > > > [ Re-adding git@vger in Cc,

RE: How to update a cloned git repository

2012-09-11 Thread Joachim Schmitz
> -Original Message- > From: Junio C Hamano [mailto:gits...@pobox.com] > Sent: Tuesday, September 11, 2012 6:01 PM > To: Joachim Schmitz > Cc: 'Matthieu Moy'; git@vger.kernel.org > Subject: Re: How to update a cloned git repository > > "Joachim S

Re: How to update a cloned git repository

2012-09-11 Thread Matthieu Moy
Junio C Hamano writes: > Matthieu Moy writes: > >> Anyway, you can easily get it from the commit that merges the branch >> (it's the-merge-commit^1). > > I think it is the-merge-commit^2; Right. I forgot that Git counted parents from 1, not 0. -- Matthieu Moy http://www-verimag.imag.fr/~moy/

Re: How to update a cloned git repository

2012-09-11 Thread Junio C Hamano
Matthieu Moy writes: > [ Re-adding git@vger in Cc, I guess it was meant to be so ] > > "Joachim Schmitz" writes: > >>> Then, work on the tip of the topic branch you depend on instead of pu. >>> These are more stable, as they will be rewritten only if this particular >>> topic branch changes. >>

Re: How to update a cloned git repository

2012-09-11 Thread Junio C Hamano
"Joachim Schmitz" writes: >> From: Matthieu Moy [mailto:matthieu@grenoble-inp.fr] >> .. >> Short answer: don't work on pu. Work on master unless you have a good >> reason not to. > > There are some changes in pu, that I need as the basis, namely my > setitimer patch and my 2nd mkdir patch, wh

Re: How to update a cloned git repository

2012-09-11 Thread Sitaram Chamarty
On Tue, Sep 11, 2012 at 4:47 PM, Joachim Schmitz wrote: > Like this? > git pull --rebase HEAD~42 > > So far I create patches, wiped out the entire repository, cloned, forked and > applied the changes, pretty painful. I think a 'git pull --rebase' should usually work even for 'pu'. But sometime

Re: How to update a cloned git repository

2012-09-11 Thread Erik Faye-Lund
On Tue, Sep 11, 2012 at 2:40 PM, Matthieu Moy wrote: > [ Re-adding git@vger in Cc, I guess it was meant to be so ] > > "Joachim Schmitz" writes: > >>> Then, work on the tip of the topic branch you depend on instead of pu. >>> These are more stable, as they will be rewritten only if this particula

RE: How to update a cloned git repository

2012-09-11 Thread Joachim Schmitz
> From: Matthieu Moy [mailto:matthieu@grenoble-inp.fr] > Sent: Tuesday, September 11, 2012 2:41 PM > To: Joachim Schmitz > Cc: git > Subject: Re: How to update a cloned git repository > > [ Re-adding git@vger in Cc, I guess it was meant to be so ] Oops, yes it was

Re: How to update a cloned git repository

2012-09-11 Thread Matthieu Moy
[ Re-adding git@vger in Cc, I guess it was meant to be so ] "Joachim Schmitz" writes: >> Then, work on the tip of the topic branch you depend on instead of pu. >> These are more stable, as they will be rewritten only if this particular >> topic branch changes. > > These are not available from gi

Re: How to update a cloned git repository

2012-09-11 Thread Matthieu Moy
"Joachim Schmitz" writes: >> From: Matthieu Moy [mailto:matthieu@grenoble-inp.fr] >> >> Short answer: don't work on pu. Work on master unless you have a good >> reason not to. > > There are some changes in pu, that I need as the basis, namely my > setitimer patch and my 2nd mkdir patch, which

RE: How to update a cloned git repository

2012-09-11 Thread Joachim Schmitz
> From: Matthieu Moy [mailto:matthieu@grenoble-inp.fr] > Sent: Tuesday, September 11, 2012 1:06 PM > To: Joachim Schmitz > Cc: git@vger.kernel.org > Subject: Re: How to update a cloned git repository > > "Joachim Schmitz" writes: > > > Hi folk

Re: How to update a cloned git repository

2012-09-11 Thread Matthieu Moy
"Joachim Schmitz" writes: > Hi folks > > Probably a beginner's question... > > If I did a >git clone git://guthub.com/git/git.git > and worked on some own branches of pu >git checkout pu;git checkout -p mybranch; I guess you meant "git checkout -b mybranch" (not -p). > hack;hack;...;git

How to update a cloned git repository

2012-09-11 Thread Joachim Schmitz
Hi folks Probably a beginner's question... If I did a git clone git://guthub.com/git/git.git and worked on some own branches of pu git checkout pu;git checkout -p mybranch;hack;hack;...;git commit -a -s how to update my repository once the the one on github changed? A plain git pull or