peach a19a732be8 commit message | há 2 anos atrás | |
---|---|---|
.. | ||
node_modules | há 2 anos atrás | |
CHANGELOG.md | há 2 anos atrás | |
LICENSE.md | há 2 anos atrás | |
README.md | há 2 anos atrás | |
cli.js | há 2 anos atrás | |
index.js | há 2 anos atrás | |
package.json | há 2 anos atrás |
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.
Type: object
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.
NOTE: for <revision range>
we can also use <from>..<to>
pattern, and this module has the following extra options for shortcut of this pattern:
Type: string
Default: ''
Type: string
Default: 'HEAD'
This module also have the following additions:
Type: string
Default: '%B'
Please check http://git-scm.com/docs/git-log for format options.
Type: function
A function to get debug information.
Type: string
Filter commits to the path provided.
Options to pass to git
childProcess
Type: object
Type: string
Current working directory to execute git in
$ npm install --global git-raw-commits
$ git-raw-commits --help # for more details
MIT © Steve Mao