0

I am interested in making a simple node application for graphing local git repositories. Something like this looks pretty close to what I need graphically (although I'll probably write my own):

http://gitgraphjs.com/

However, how do I get the git branch history from the command line into an array (or whatever) I can turn into a graph?

I am familiar with node's Child Process api, and I know how to get a sort of graph out of git (here and here for example), but how am I supposed to parse that output? And get all the branches in the right place?

Community
  • 1
  • 1
Entity
  • 7,972
  • 21
  • 79
  • 122
  • 1
    Can you show an array with some made-up sample data that would be similar to what you're looking for? – Trott Sep 19 '15 at 02:03

1 Answers1

0

You could try NodeGit for programmatic access to repo

Here an example to walks the git history https://github.com/nodegit/nodegit/blob/master/examples/walk-history.js

axon
  • 4,081
  • 1
  • 12
  • 14