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

Re: Merging using only fast-forward

From
Sverre Hvammen Johansen <hvammen@gmail.com>
Date
Jan 17, 2008, 06:53 UTC
Message-ID
<402c10cd0801162253n6ab19f51y53d0baa16319adaa@mail.gmail.com>
In-Reply-To
<7vwsq9o6ls.fsf@gitster.siamese.dyndns.org>
On Jan 16, 2008 12:31 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> merlyn@stonehenge.com (Randal L. Schwartz) writes:
>
> > Junio implemented a 7-line patch on the IRC channel (calling parts of it
> > "for randal" or something, I believe :) to do precisely this.
>
> The mechanism itself is simple.
>
>         http://git.pastebin.com/m156a1856

I know that the patch you wrote is not good. However, it is a good starting point.

We need to consider cases where the branch we are merging with is an ancestor or an descendant of HEAD. The patch only take descendants into account. There may also be more than one branch we are merging with. All these cases must be considered. In the case of an octopus, the cases are slightly more complicated.

I have a patch that work for all cases except for some octopus cases. I have written a few test case. All existing tests succeeds.

I will not be able to work on this for a few days, but I expect to have a working patch some time this weekend.

I have not looked at the documentation but assume it should not be to hard to add some documentation as well.

-- 
Sverre Hvammen Johansen
Previous: Junio C HamanoNext: Sverre Hvammen Johansen
Message 6 of 15 in “Merging using only fast-forward”
  1. Sverre Hvammen JohansenJan 16, 2008
  2. Randal L. SchwartzJan 16, 2008
  3. Junio C HamanoJan 16, 2008
  4. Sverre Hvammen JohansenJan 16, 2008
  5. Junio C HamanoJan 16, 2008
  6. Sverre Hvammen JohansenJan 17, 2008
  7. Sverre Hvammen JohansenJan 18, 2008
  8. Junio C HamanoJan 18, 2008
  9. Sverre Hvammen JohansenJan 19, 2008
  10. Sverre Hvammen JohansenJan 19, 2008
  11. Junio C HamanoJan 19, 2008
  12. Sverre Hvammen JohansenJan 19, 2008
  13. Sverre Hvammen JohansenJan 21, 2008
  14. Sverre Hvammen JohansenJan 19, 2008
  15. Please don't reply to this threadSverre Hvammen Johansen, Jan 19, 2008

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.