# how to showing a merge graph?

2 messages from 2016-08-30 to 2016-08-30. Participants: Duy Nguyen, Michael J Gruber.
Thread: https://gitlist.dev/t/43960

## Duy Nguyen, 2016-08-30 13:10

Subject: how to showing a merge graph?
Message-ID: <CACsJy8CP+Jb=B5zvhJqtR3mZY3snP=o8Zi-df8bMOJTM_3z3Zg@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8CP%2BJb%3DB5zvhJqtR3mZY3snP%3Do8Zi-df8bMOJTM_3z3Zg%40mail.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

```

## Michael J Gruber, 2016-08-30 14:19

Subject: Re: how to showing a merge graph?
Message-ID: <e1156f36-51f0-17da-dcdb-36e6459fb178@drmicha.warpmail.net>
URL: https://gitlist.dev/e/e1156f36-51f0-17da-dcdb-36e6459fb178%40drmicha.warpmail.net
In-Reply-To: <CACsJy8CP+Jb=B5zvhJqtR3mZY3snP=o8Zi-df8bMOJTM_3z3Zg@mail.gmail.com>

```
Duy Nguyen venit, vidit, dixit 30.08.2016 15:10:
> 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


```
