Murmele / Gittyup

Understand your Git history!
https://murmele.github.io/Gittyup
MIT License
1.38k stars 107 forks source link

cleaner graph #500

Open moolight-seashell opened 1 year ago

moolight-seashell commented 1 year ago

Upgrade the graph view to be cleaner ,

try to keep same branch on the same column, avoid branches that cross or swap columns, do not change graph when checkout to other branch, do not force current branch to be the branch on the first column.

M2 M1

see th vscode extention source code : https://github.com/mhutchie/vscode-git-graph

exactly-one-kas commented 1 year ago

Sorry, we can't look at vscode-git-graph's source code and use/incorporate its algorithms into Gittyup, since the code is non-free and doesn't allow this:

Permission is NOT GRANTED to publish, distribute, sublicense, and/or sell derivative works of the Software.

moolight-seashell commented 1 year ago

new idea to enhance the git graph, a option "ignore the fast forward" to see the complete graph and all the steps. detail_mode

moolight-seashell commented 1 year ago

i found a very clever website that explains the algos of git graph drawing with differents types of display.

https://pvigier.github.io/2019/05/06/commit-graph-drawing-algorithms.html

the best of the best would probably be to be able to choose the type of representation which is appropriate to us, but if in a first instance the graph is less "messy" it would be already really good

and if you really want to go further and further, maybe you can make a collabsable graph https://fork.dev/blog/posts/collapsible-graph/overview.gif

Murmele commented 1 year ago

@moolight-seashell thanks for sharing