{"push_id":1105030219,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"be24376c7e05d1cb7eaab4ea401d911a87cbcb5e","before":"d491aa1a42da9c921b34dc6af61dd62ad7048f96","commits":[{"sha":"be24376c7e05d1cb7eaab4ea401d911a87cbcb5e","author":{"email":"c273e5f221b72289e45533c842b13e71d1e3902c@gmail.com","name":"Jeff Morrison"},"message":"Use cached local git repo (#82)\n\nPreviously we were using the GitHub API for the `search` and `install` commands. This worked pretty well, except that it would hit the GitHub API rate limit super fast for users.\r\n\r\nPer https://github.com/flowtype/flow-typed/issues/80, this PR switches the backend to use a local (persistent) clone of the `flow-typed` repo (stored in `~/.flow-typed/repo`). Not only does this make general use of the CLI a little faster, but it also forgoes the need for CLI users to ever hit the GitHub API. The only place we still use the GitHub API is for the test runner to fetch the list of flow binaries. This is more ok because most of those runs happen in travis -- and we've worked around the rate-limit there to some degree.\r\n\r\nCoincidentally, this was also an opportunity to clean up the old `libDefs.js` file (which had to manage partial bits of info from GitHub due to the need to request bits of information in phases and pages...yuck). It simplified all that down into the exact same code that's used to run tests -- so yay, less complexity!","distinct":true,"url":"https://api.github.com/repos/flowtype/flow-typed/commits/be24376c7e05d1cb7eaab4ea401d911a87cbcb5e"}]}