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

Re: how to showing a merge graph?

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Aug 30, 2016, 14:19 UTC
Message-ID
<e1156f36-51f0-17da-dcdb-36e6459fb178@drmicha.warpmail.net>
In-Reply-To
<CACsJy8CP+Jb=B5zvhJqtR3mZY3snP=o8Zi-df8bMOJTM_3z3Zg@mail.gmail.com>
Duy Nguyen venit, vidit, dixit 30.08.2016 15:10:
Show 24 quoted lines
> 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?

I don't think anything (we have) would give you two lines connecting the same two commits directly, i.e. a double edge in the graph as you indicate above.

Michael
Previous: Duy Nguyen
Message 2 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.