3 ms·
The input format is json? How do I generate that from a git log?
by cbarrick 6y ago
The input format is json? How do I generate that from a git log?
- pwdisswordfish0 6y agoThat was my first thought, too. But the input is not JSON. The input is an object graph. JSON stands for "JS Object Notation". Any graph with nodes that match the shape that the example JSON parses to is a valid input. (Though it doesn't help that the author refers to the graph as "json".) Still, getting that object graph is the other half of the owl.
- alain_gilbert 6y agoIt's been a while I haven't work on this, but if you do 'git2graph -r' within a repository folder, I believe it will generate the needed json for that repository.
- vsareto 6y agoSomething like these? https://stackoverflow.com/questions/4600445/git-log-output-to-xml-json-or-yaml https://stackoverflow.com/questions/4600445/git-log-output-t... https://gist.github.com/textarcana/1306223 https://gist.github.com/textarcana/1306223