vscode-git-graph icon indicating copy to clipboard operation
vscode-git-graph copied to clipboard

add simplifyByDecoration checkbox

Open XUJINKAI opened this issue 2 years ago • 5 comments

add "Simplify" button next to "show remote branches"

this button add "--simplify-by-decoration" arg to git log, this will show topology of git branches and tags.

btw, I rename "Show Remote Branches" to "Remotes" to prevent header too long

XUJINKAI avatar Jun 26 '23 16:06 XUJINKAI

Can you post an example how the difference looks?

hansu avatar Jun 28 '23 19:06 hansu

Use git as an example: image

After checked "Simplify" button, only branches and tags shows. This is a very useful feature for large repos. image

If unchecked "Show Tags", only branches shows. image

XUJINKAI avatar Jun 29 '23 03:06 XUJINKAI

very useful flag for gigantic repositories!

phil294 avatar Jun 30 '23 15:06 phil294

Ok looks like a good option to keep the overview. But can you add a setting to disable the button because the space in this bar is quite rare especially when viewing Git-Graph in a split view?

hansu avatar Jun 30 '23 17:06 hansu

@hansu I'd like to contribute, but I am not professional in vscode extension development or typescript🤦‍♂️. sorry

XUJINKAI avatar Jul 01 '23 03:07 XUJINKAI

I will implemented a setting to hide that checkbox after I have merged it.

hansu avatar Feb 13 '25 20:02 hansu

@XUJINKAI I noticed that not all merge commits are displayed when using the simplify option.

For example I expect the two merge commits just behind HEAD to be displayed also with 'Simplify'

grafik

But they are not displayed as well as many other merge commits. Any idea? grafik

hansu avatar Jul 03 '25 06:07 hansu