fitzgen/github-api — Issue #11: Help - Get the number of commits for a branch
Author: Gillespie59
Created: 2011-12-05 16:44:19+00:00
State: open

Hi everybody

How can i get the number of commits for a specific branch ?

I know I can do something like that :
gh.commit.forBranch("repo", "project", "master?page=10", function(data){
console.log(data);
});

If I use a "for" statement for example, I do not know when I have to stop. If I use this command with a page parameter too big, I have a 404 Not Found.

Do you have any idea?

Thanks a lot for this javascript project!!

Manu