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
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