threads / discuss / 43960

how to showing a merge graph?

Subject: how to showing a merge graph?

## tl;dr

2 messages between Aug 30, 2016 and Aug 30, 2016.

replies: 1people: 2as markdown or json

Duy Nguyen· Aug 30, 2016, 13:10 UTC · lore

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· Aug 30, 2016, 14:19 UTC · re: Duy Nguyen · lore

Re: how to showing a merge graph?

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

← back to recent threads