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

Re: Moved files and merges

From
Sam Ravnborg <sam@ravnborg.org>
Date
Sep 3, 2005, 22:03 UTC
Message-ID
<20050903220355.GA1895@mars.ravnborg.org>
In-Reply-To
<7voe7arlqk.fsf@assigned-by-dhcp.cox.net>
On Sat, Sep 03, 2005 at 12:32:03PM -0700, Junio C Hamano wrote:
Show 9 quoted lines
> Sam Ravnborg <sam@ravnborg.org> writes:
> 
> > As explained in another mail what we want to do is actually to
> > transpose the changes made to F to the now renamed file G.
> > So we end up with G containing the modifications made to F.
> >
> > Also we want to include the new file K.
> 
> Thanks for the clarification.  But the principles are the same.
Not the way I read your explanation.
Lets try to cook up an example:

Common ancestor looks like this: foo/foo.c

Then we have two lines of parallel development dev-line-0 modifes foo/foo.c dev-line-1 moves foo/foo.c to bar/bar.c In addition dev-line-1 adds a second file bar/Makefile

So what should happen when we merge the two dev-lines? The resulting tree should look like this: bar/bar.c (including the modifications down in dev-line-1 to foo.c bar/Makefile as added in dev-line-2

If this fits into your longer description - then yes this is the same principle. But I failed to see it fit, therefore this simple example.

If the problem is not fully understood it can be difficult to come up with the proper solution. And with the example above the problem should be really easy to understand. Then we have the tree as used by hpa with a few more mergers in it. But the above is what was initial tried to do with the added complexity of a few more renames etc.

	Sam
Previous: Junio C HamanoNext: Junio C Hamano
Message 11 of 23 in “Moved files and merges”
  1. H. Peter AnvinSep 2, 2005
  2. Martin LanghoffSep 3, 2005
  3. H. Peter AnvinSep 4, 2005
  4. Junio C HamanoSep 3, 2005
  5. Junio C HamanoSep 3, 2005
  6. Fredrik KuivinenSep 3, 2005
  7. Junio C HamanoSep 3, 2005
  8. Junio C HamanoSep 3, 2005
  9. Sam RavnborgSep 3, 2005
  10. Junio C HamanoSep 3, 2005
  11. Sam RavnborgSep 3, 2005
  12. Junio C HamanoSep 4, 2005
  13. Daniel BarkalowSep 4, 2005
  14. Junio C HamanoSep 4, 2005
  15. H. Peter AnvinSep 5, 2005
  16. Linus TorvaldsSep 5, 2005
  17. H. Peter AnvinSep 5, 2005
  18. Junio C HamanoSep 5, 2005
  19. Junio C HamanoSep 5, 2005
  20. H. Peter AnvinSep 5, 2005
  21. Junio C HamanoSep 4, 2005
  22. Fredrik KuivinenSep 3, 2005
  23. Sam RavnborgSep 3, 2005

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.