Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Help - Get the number of commits for a branch #11

Closed
Gillespie59 opened this Issue Dec 5, 2011 · 0 comments

Comments

Projects
None yet
1 participant

Gillespie59 commented Dec 5, 2011

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment