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

Misrendering of git 2.24 log --graph

From
Jan Engelhardt <jengelh@inai.de>
Date
Jan 23, 2020, 23:12 UTC
Message-ID
<nycvar.YFH.7.76.2001232353220.26179@n3.vanv.qr>
Greetings.

I have observed git 2.24 outputting a garbage graph element for a particular history. The issue does not appear in 2.25, but the underlying bug may still be in there; it is just that _this particular history_ does not expose it anymore due to the new, more compact tree rendering that 2.25 seems to be shipping.

Reproducer:
$ git clone git://github.com/jengelh/git-issue-20200123 gi
$ cd gi; git log --oneline --graph --all --topo-order | head -n 74
[...]
| | * |   ba85ad93c Merge branch 'kc-8.7.x'
| | |\ \  
| |/ / /  
| | | _   
| | * 79106b731 doc: update 8.7.x news

See that underscore there in line 73. The connection between commit 610d621dd and its parent 79106b731 is not properly connected (visually). I think this should have been [diff notation follows]

-| | | _   
+| | | /
+| | |/
 | | * 79106b731 doc: update 8.7.x news
or something along those lines (pun intended).
Next: Derrick Stolee
Message 1 of 7 in “Misrendering of git 2.24 log --graph”
  1. Jan EngelhardtJan 23, 2020
  2. Derrick StoleeJan 24, 2020
  3. Derrick StoleeJan 24, 2020
  4. Jan EngelhardtJan 24, 2020
  5. Derrick StoleeJan 24, 2020
  6. SZEDER GáborJan 24, 2020
  7. Jan EngelhardtJan 24, 2020

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.