GitHub Api: How to get Root :tree_sha of a repository?
Posted
by Chris Jacob
on Stack Overflow
See other posts from Stack Overflow
or by Chris Jacob
Published on 2010-05-14T00:29:43Z
Indexed on
2010/05/14
0:34 UTC
Read the original article
Hit count: 327
github
|github-api
How do I get the Root :tree_sha of a GitHub repository via the GitHub API?
The GitHib API help pages don't seem to explain this critical piece of information:
http://develop.github.com/p/object.html
Can get the contents of a tree by tree SHA
tree/show/:user/:repo/:tree_sha
To get a listing of the root tree for the facebox project from our commit listing, we can call this:
$ curl http://github.com/api/v2/yaml/tree/show/defunkt/facebox/a47803c9ba26213ff194f042ab686a7749b17476
© Stack Overflow or respective owner