onlywei / explain-git-with-d3

Use D3 to visualize simple git branching operations.
MIT License
1.71k stars 390 forks source link

[WIP] Browserify #33

Closed JakeGinnivan closed 5 years ago

JakeGinnivan commented 9 years ago

This is not ready to merge at all, but wanted to put it up as a discussion.

I had some time without internet while on a cruise and felt like hacking on this so I started refactoring.

I switched over to browserify rather than requirejs to make it easy to split out modules and implemented a lightweight git respository module which has a similar api structure to libgit2.

The problem I started trying to solve was that internally this uses strings a lot and you can't tell if refs are tags or branches very well.

Thoughts? Do you like the approach and are you interested in pulling this in if I finish the refactoring