I would like to ask the following question about the internals of Git:
Using
git log --graph
shows a visualization of the history of a Git project, showing where new branches were created and merged. What algorithm does Git use internally to generate this visualization?The main thing I'm interested in is how the algorithm decides where to place pipes, slashes, and asterisks in order to denote commits and branches. I'm not as interested in, for example, the data structure Git uses to represent the visualization or how it walks to the revision tree to build the visualization. I would like to know because my team is planning on implementing our own Git visualization, and we would like to at least understand how Git is able to deterministically build its visual graph.
Would it be on-topic on Stack Overflow? If not, is there a Stack Exchange site where this would be appropriate?
In general, are questions about how tools work internally on-topic?