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

Re: cg-log patches

From
Petr Baudis <pasky@ucw.cz>
Date
May 10, 2005, 00:37 UTC
Message-ID
<20050510003713.GL15712@pasky.ji.cz>
In-Reply-To
<20050509121435.GB18382@pasky.ji.cz>

Dear diary, on Mon, May 09, 2005 at 02:14:35PM CEST, I got a letter where Petr Baudis <pasky@ucw.cz> told me that...

Show 24 quoted lines
> In git, the parents list is unordered. But this is different in Cogito,
> where the first parent _is_ special. If you are merging _from_ branch B
> _to_ branch A, the order of parents will be always
> 
> parent A
> parent B
> 
> In practice, it does not make too much difference, but this is one of
> the cases where it makes difference. So I think the current behaviour is
> right.
> 
> BTW, this also implies that merges
> 
>   A --
>       \
>   B ---+--
> 
> and
> 
>   A ---+--
>       /
>   B --
> 
> are considered as different ones by Cogito
Ok. So you do
A ---+--
    /
B --
and now merge A to B, which results in fast-forward and
A ---+----
    /  \
B --    --
but when doing cg-log in B, the merge is the wrong way around now.

Sean counterexample works too, it's a good thing to maintain compatibility with git at this one too.

Still, I would like to have the files list separated. What about one bullet per parent? Like

    * asdf, hjkl, xyzzy
    * hjkl, quux
for a regular two-parents merge.
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: SeanNext: Petr Baudis
Message 16 of 17 in “cg-log patches”
  1. SeanMay 8, 2005
  2. Marcel HoltmannMay 8, 2005
  3. SeanMay 8, 2005
  4. Marcel HoltmannMay 8, 2005
  5. Petr BaudisMay 8, 2005
  6. SeanMay 8, 2005
  7. Petr BaudisMay 8, 2005
  8. SeanMay 8, 2005
  9. Marcel HoltmannMay 8, 2005
  10. Jonas FonsecaMay 8, 2005
  11. SeanMay 9, 2005
  12. Jonas FonsecaMay 9, 2005
  13. Petr BaudisMay 9, 2005
  14. Jonas FonsecaMay 9, 2005
  15. SeanMay 9, 2005
  16. Petr BaudisMay 10, 2005
  17. Petr BaudisMay 8, 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.