Live data from Hacker News

Digging around Github's git database API

swanson.github.com

11–12 of 12 posts

Re: Digging around Github's git database API

#11

A few things: API v2 has a read-only object API: http://develop.github.com/p/object.html . Also, the blob content is returned in base64, because JSON does not handle binary data. It's not the raw loose object though. You're better off using the custom mime type. The API v3 object API is meant to be extremely low level. If you want to update a branch with a new commit, you'll have to: * Create new blobs for the added/…

I nice high level open http api to git would be a huge benefit, as working with the native http api from js is not simple, and not needed for every use case. Ideally not github only...

The `git.js` project I mention in the post seems to be heading that direction. It's only a few months old so it's missing some important features, but it looks to be on the right track and works with any repo.

Re: Digging around Github's git database API

#12
post #11

Earlier quoted context omitted.

I nice high level open http api to git would be a huge benefit, as working with the native http api from js is not simple, and not needed for every use case. Ideally not github only...

The `git.js` project I mention in the post seems to be heading that direction. It's only a few months old so it's missing some important features, but it looks to be on the right track and works with any repo.

I saw that but I meant a higher level http api, easy to use from javascript, like this github API sort of is. Something you could use with much less code than the git http transport. It is gret to implement the existing api but it is not an optimal api from the use case of a javascript client.
Post reply on HN