ncsokas / 100-days-of-code

Fork this template for the 100 days journal - to keep yourself accountable (multiple languages available)
http://www.100daysofcode.com
0 stars 0 forks source link

Write a git internals structure visualiser #79

Closed sync-by-unito[bot] closed 7 months ago

sync-by-unito[bot] commented 7 months ago

It would be really cool to have a tool that can run through (small) git repos, and create a diagram of the entire structure including tree and blob objects. There are plenty of tools for visualising only the commit graph, but I have found nothing that can really show the internals.

┆Issue is synchronized with this Trello card by Unito

sync-by-unito[bot] commented 7 months ago

➤ Jan Krag commented:

Zander hacked up a quick Python script today as an initial starting point. This prints out a tree structure to console.

Zander and I then started investigating if we can generate output for Mermaid.js to render, but this is WIP.

This would make a fun pair/mob hackathon session as there is potential for parallel work on improving the python traversal while also investigating how to improve the visualisation in Mermaid (or something else)..

sync-by-unito[bot] commented 7 months ago

➤ Jan Krag commented:

zah23 Can you share what you have hacked together so far.

sync-by-unito[bot] commented 7 months ago

➤ Zander Havgaard commented:

jankrag2

All files are on branch "tree-vis" in git-katas reop :-) https://github.com/eficode-academy/git-katas/tree/tree-vis/utils/tree-vis

sync-by-unito[bot] commented 7 months ago

➤ Jan Krag commented:

I constructed a working version of this during a previous Spike friday where we were testing out ChatGPT. I will publish it on GH at some point.