git-raw-commits 2.0.10 → 2.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ### [2.0.11](https://github.com/conventional-changelog/conventional-changelog/compare/git-raw-commits-v2.0.10...git-raw-commits-v2.0.11) (2021-12-29)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * allow raw commits to be filtered by path and date range ([#893](https://github.com/conventional-changelog/conventional-changelog/issues/893)) ([b2245a7](https://github.com/conventional-changelog/conventional-changelog/commit/b2245a766c70d280380abbbe85c4894eee04fdd0))
12
+
6
13
  ### [2.0.10](https://www.github.com/conventional-changelog/conventional-changelog/compare/v2.0.9...v2.0.10) (2021-01-27)
7
14
 
8
15
 
package/index.js CHANGED
@@ -28,6 +28,9 @@ function getGitArgs (gitOpts) {
28
28
  const gitFromTo = [gitOpts.from, gitOpts.to].filter(Boolean).join('..')
29
29
 
30
30
  const gitArgs = ['log', gitFormat, gitFromTo]
31
+ .concat(dargs(gitOpts, {
32
+ excludes: ['debug', 'from', 'to', 'format', 'path']
33
+ }))
31
34
 
32
35
  // allow commits to focus on a single directory
33
36
  // this is useful for monorepos.
@@ -35,9 +38,7 @@ function getGitArgs (gitOpts) {
35
38
  gitArgs.push('--', gitOpts.path)
36
39
  }
37
40
 
38
- return gitArgs.concat(dargs(gitOpts, {
39
- excludes: ['debug', 'from', 'to', 'format', 'path']
40
- }))
41
+ return gitArgs
41
42
  }
42
43
 
43
44
  function gitRawCommits (rawGitOpts, rawExecOpts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-raw-commits",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "Get raw git commits out of your repository using git-log(1)",
5
5
  "bugs": {
6
6
  "url": "https://github.com/conventional-changelog/conventional-changelog/issues"