Re: microblaze: Merge window + git

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stefan Richter
Date: Friday, April 11, 2008 - 3:51 am

Michal Simek wrote:

When 2.6.25 is being released.


You can combine several commits into one in a few ways.  Of course the
combined commit is an entirely new one (with its own SHA1 etc.).  One
possible way:

# you are at <commit0>
$ git cherry-pick --no-commit <commit1>   # apply but don't commit yet
$ git cherry-pick --edit <commit2>   # apply, edit the changelog, commit

There will now be a <commit3> whose parent is <commit0>.  <commit3>
incorporates changes of <commit1> and <commit2>.

Another way:

# you are at <commit0>
$ patch < ~/diff-from-somewhere
$ git commit --amend   # replace <commit0> by new amended commit

There will now be a <commit4> instead of <commit0>, with the same
parent(s) which <commit0> had.  <commit4> incorporates changes of
<commit0> and the diff.

However, I am no expert on doing these things in git since I only
develop with quilt.  I use git only to publish the state of development
and the state for upstream merge.
-- 
Stefan Richter
-=====-==--- -=-- -=-==
http://arcgraph.de/sr/
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
microblaze: Merge window + git , Michal Simek, (Fri Apr 11, 12:50 am)
Re: microblaze: Merge window + git, Stefan Richter, (Fri Apr 11, 3:51 am)
Re: microblaze: Merge window + git, Ilpo Järvinen, (Fri Apr 11, 5:45 am)
Re: microblaze: Merge window + git, H. Peter Anvin, (Sat Apr 12, 2:21 pm)
Re: microblaze: Merge window + git, Michal Simek, (Sun Apr 13, 4:32 am)