This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
git-raw-commits with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Get raw git commits out of your repository using git-log(1)
$ npm install --save git-raw-commits
var gitRawCommits = require('git-raw-commits'); gitRawCommits(options) .pipe(...);
Returns a readable stream. Stream is split to break on each commit.
Please check the available options at http://git-scm.com/docs/git-log. NOTE: Single dash arguments are not supported because of https://github.com/sindresorhus/dargs/blob/master/index.js#L5.
<revision range> we can also use
<from>..<to> pattern, and this module has the following extra options for shortcut of this pattern:
This module also have the following additions:
Please check http://git-scm.com/docs/git-log for format options.
A function to get debug information.
Filter commits to the path provided.
Options to pass to
Current working directory to execute git in
$ npm install --global git-raw-commits $ git-raw-commits --help # for more details
MIT © Steve Mao