Detalhes do pacote

@tryprospect/git-raw-commits

Get raw git commits out of your repository using git-log(1)

git-raw-commits, raw, commit, commits

readme (leia-me)

NPM version Build Status: Linux Build Status: Windows Dependency Status Coverage Status

Get raw git commits out of your repository using git-log(1)

Install

$ npm install --save @tryprospect/git-raw-commits

Usage

var gitRawCommits = require('@tryprospect/git-raw-commits');

gitRawCommits(options)
  .pipe(...);

API

gitRawCommits(gitOpts, [execOpts])

Returns a readable stream. Stream is split to break on each commit.

gitOpts

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:

gitOpts.from

Type: string Default: ''

gitOpts.to

Type: string Default: 'HEAD'

This module also have the following additions:

gitOpts.format

Type: string Default: '%B'

Please check http://git-scm.com/docs/git-log for format options.

gitOpts.debug

Type: function

A function to get debug information.

gitOpts.path

Type: string

Filter commits to the path provided.

execOpts

Options to pass to git childProcess

Type: object

execOpts.cwd

Type: string

Current working directory to execute git in

CLI

$ npm install --global @tryprospect/git-raw-commits
$ git-raw-commits --help # for more details

License

MIT © Steve Mao

changelog (log de mudanças)

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

2.0.11 (2021-11-06)

Features

  • initial fork git-raw-commits (9a64fdc)

Reverts

  • revert changes to gitlab ci (16949ac)

2.0.10 (2021-01-27)

Bug Fixes

  • align lodash dependency across packages (#737) (d9feeb6)
  • revert normalize git show signature option to false (c4d9042)

2.0.9 (2020-12-29)

Bug Fixes

2.0.8 (2020-11-05)

Bug Fixes

  • deps: update dependency through2 to v4 (#657) (7ae618c)

2.0.7 (2020-05-08)

Bug Fixes

  • deps: update yargs-parser to move off a flagged-vulnerable version. (#635) (aafc0f0)

2.0.3 (2019-11-14)

Note: Version bump only for package git-raw-commits

2.0.2 (2019-04-10)

Bug Fixes

  • deps: update dependency through2 to v3 (#392) (26fe91f)

2.0.1 (2018-11-01)

Bug Fixes

  • Upgrade to Lerna 3, fix Node.js v11 error (#385) (cdef282)

2.0.0 (2018-05-29)

Chores

  • package: set Node requirement to oldest supported LTS (#329) (cae2fe0)

BREAKING CHANGES

  • package: Set the package's minimum required Node version to be the oldest LTS currently supported by the Node Release working group. At this time, that is Node 6 (which is in its Maintenance LTS phase).

1.3.6 (2018-03-27)

Note: Version bump only for package git-raw-commits

1.3.5 (2018-03-22)

Note: Version bump only for package git-raw-commits

1.3.4 (2018-02-24)

Note: Version bump only for package git-raw-commits

1.3.3 (2018-02-20)

Note: Version bump only for package git-raw-commits

1.3.2 (2018-02-13)

Note: Version bump only for package git-raw-commits

1.3.1 (2018-02-13)

Note: Version bump only for package git-raw-commits

1.3.0 (2017-11-13)

Features

  • git-raw-commits: add execOpts.cwd (2631213)

1.2.0 (2017-03-10)

Features

  • allow raw commits to be filtered by path (#172) (ec0a25d)
  • migrate repo to lerna mono-repo (793e823)

1.1.2 (2016-06-27)

Bug Fixes

  • windows: use execFile for executing git (9ae06df), closes #11

1.1.1 (2016-06-26)

Bug Fixes

  • windows: escape command percent signs (005b559), closes #10