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

how to showing a merge graph?

From
Duy Nguyen <pclouds@gmail.com>
Date
Aug 30, 2016, 13:10 UTC
Message-ID
<CACsJy8CP+Jb=B5zvhJqtR3mZY3snP=o8Zi-df8bMOJTM_3z3Zg@mail.gmail.com>

I want to see a "git log --oneline --graph" with all non-merge commits removed, but history is rewritten so that the merge commits represent the entire topics and are shown to have all the parents of the base commits. e.g. if the full graph is

*   8118403 Merge commit 'bbb2437'
|\
| * bbb2437 3p
| * dfde6b9 2p
* | 9c0aeb2 2
|/
* 8db1c06 1
I just want to see
*   8118403 Merge commit 'bbb2437'
|\
| |
|/
* 8db1c06 1

I had a quick look of rev-list-options.txt but couldn't find anything that does that (--simplify-merges looks different), and revision.c is not that familiar to me to figure this out by myself. Help?

-- 
Duy
Next: Michael J Gruber
Message 1 of 2 in “how to showing a merge graph?”
  1. Duy NguyenAug 30, 2016
  2. Michael J GruberAug 30, 2016

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.