git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: merging initial part of a branch?

From
JFJ. Bruce Fields <bfields@fieldses.org>
Date
Jan 12, 2006, 01:13 UTC
Message-ID
<20060112011311.GC14599@fieldses.org>
In-Reply-To
<43C5A9F4.1040604@op5.se>
On Thu, Jan 12, 2006 at 01:59:32AM +0100, Andreas Ericsson wrote:
Show 15 quoted lines
> Junio C Hamano wrote:
> >Andreas Ericsson <ae@op5.se> writes:
> >>$ git format-patch -m -k v2.6.14..v2.6.15 --stdout > mega-mbox-patch
> >>$ git checkout our-own-branch
> >>$ git am -3 -k mega-mbox-patch
> >>
> >>That'll take some time though, so be sure to have a six-pack or two handy.
> >
> >
> >I do not think that should be done.  You will create an
> >alternate history that way, not the true v2.6.15 history.
> >
> 
> I took their request to mean that they already have patches of their own 
> in that, so they'll never have v2.6.15 vanilla history anyway.

If I have some local changes, and do a git pull linus tag v2.6.15, I find that the final commit in the result is a merge commit whose first parent refers to my last commit, and whose second commit points to Linus's v2.6.15 commit from the "vanilla history". Which is what I think you really need for a history that makes sense and that can be used by future merges.

--b.
Previous: Andreas EricssonNext: J. Bruce Fields
Message 6 of 17 in “merging initial part of a branch?”
  1. J. Bruce FieldsJan 11, 2006
  2. Junio C HamanoJan 11, 2006
  3. Andreas EricssonJan 12, 2006
  4. Junio C HamanoJan 12, 2006
  5. Andreas EricssonJan 12, 2006
  6. J. Bruce FieldsJan 12, 2006
  7. J. Bruce FieldsJan 12, 2006
  8. Junio C HamanoJan 12, 2006
  9. J. Bruce FieldsJan 13, 2006
  10. Junio C HamanoJan 13, 2006
  11. J. Bruce FieldsJan 13, 2006
  12. Junio C HamanoJan 13, 2006
  13. J. Bruce FieldsJan 13, 2006
  14. Junio C HamanoJan 15, 2006
  15. J. Bruce FieldsJan 16, 2006
  16. Junio C HamanoJan 16, 2006
  17. J. Bruce FieldsJan 23, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.