ajaxorg/node-github — pull request #23 by gjtorikian (2012-03-07 19:38:34+00:00)
Title: Add paging to the API

The official GitHub API says to pass in a page number to retrieve that "set" of commits: http://develop.github.com/p/commits.html

This is analogous to the GitHub API. Unfortunately, this is not supported in this library, nor, apparently, the PHP library.

So here it is. And I need this. :)

The header object **must** be a string, as I found out the hard way; in other words, `{"page": 2}` will not work. The API function takes in a number, because it's a stronger user case. The user might be doing a `for` loop, and can just pass the numeral into `getBranchCommits()`.

@mattpardee @fjakobs