sfdx-git-delta 5.4.2 → 5.5.0

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
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## 5.5.0 (2022-09-21)
6
+
7
+
8
+ ### Features
9
+
10
+ * enable git diff on submodules ([#353](https://github.com/scolladon/sfdx-git-delta/issues/353)) ([263e37d](https://github.com/scolladon/sfdx-git-delta/commit/263e37dbc3991eae3893b330fe9856ee6b4569e9))
11
+
5
12
  ### [5.4.2](https://github.com/scolladon/sfdx-git-delta/compare/v5.4.1...v5.4.2) (2022-08-26)
6
13
 
7
14
 
package/README.md CHANGED
@@ -61,7 +61,7 @@ sfdx plugins:install sfdx-git-delta
61
61
  ```
62
62
 
63
63
  ```sh
64
- sfdx sgd:source:delta --to "HEAD" --from "HEAD^" --output "."
64
+ sfdx sgd:source:delta --to "HEAD" --from "HEAD~1" --output "."
65
65
  ```
66
66
 
67
67
  ```sh
@@ -183,13 +183,25 @@ OPTIONS
183
183
  this command invocation
184
184
  ```
185
185
 
186
- _See code: [src/commands/sgd/source/delta.ts](https://github.com/scolladon/sfdx-git-delta/blob/v5.4.2/src/commands/sgd/source/delta.ts)_
186
+ _See code: [src/commands/sgd/source/delta.ts](https://github.com/scolladon/sfdx-git-delta/blob/v5.5.0/src/commands/sgd/source/delta.ts)_
187
187
  <!-- commandsstop -->
188
188
 
189
189
  ### Windows users
190
190
 
191
191
  If you run SGD on a Windows system, use double quotes [to prevent the terminal to interpret parameters](https://github.com/scolladon/sfdx-git-delta/issues/134)
192
192
 
193
+ You should also avoid using the "^" character ([shorthand for parent commit in git](https://git-scm.com/docs/git-rev-parse#Documentation/git-rev-parse.txt-emltrevgtltngtemegemHEADv1510em)) because it is the [escape character in Windows](https://ss64.com/nt/syntax-esc.html#:~:text=include%20the%20delimiters.-,Escape%20Character,-%5E%20%20Escape%20character.).
194
+ So instead of:
195
+ ```sh
196
+ sfdx sgd:source:delta --from "HEAD^" # wrong git shortcut with windows because it uses "^" syntax
197
+ ````
198
+ You should write:
199
+ ```sh
200
+ sfdx sgd:source:delta --from "HEAD~1" # right git shortcut with windows because it does not use "^", it uses "~n" syntax
201
+ ```
202
+
203
+
204
+
193
205
  ### CI/CD specificity
194
206
 
195
207
  In CI/CD pipelines, branches are not checked out locally when the repository is cloned, so you must specify the remote prefix.
@@ -256,12 +268,12 @@ So let’s do it!
256
268
  From the project repo folder, the CI pipeline will run the following command:
257
269
 
258
270
  ```sh
259
- sfdx sgd:source:delta --to "HEAD" --from "HEAD^" --output .
271
+ sfdx sgd:source:delta --to "HEAD" --from "HEAD~1" --output .
260
272
  ```
261
273
 
262
274
  which means:
263
275
 
264
- > Analyze the difference between HEAD (latest commit) and HEAD^ (previous commit), and output the result in the current folder.
276
+ > Analyze the difference between HEAD (latest commit) and HEAD~1 (previous commit), and output the result in the current folder.
265
277
 
266
278
  The `sfdx sgd:source:delta` command produces 2 usefull artifacts:
267
279
 
@@ -325,7 +337,7 @@ Let's use this option with our previous example:
325
337
 
326
338
  ```sh
327
339
  mkdir changed-sources
328
- sfdx sgd:source:delta --to "HEAD" --from "HEAD^" --output changed-sources/ --generate-delta
340
+ sfdx sgd:source:delta --to "HEAD" --from "HEAD~1" --output changed-sources/ --generate-delta
329
341
  ```
330
342
 
331
343
  It generates the `package` and `destructiveChanges` folders, and copies added/changed files in the output folder.
@@ -341,7 +353,7 @@ _Content of the output folder when using the --generate-delta option, with the s
341
353
  > # move HEAD to the wanted past commit
342
354
  > $ git checkout <not-HEAD-commit-sha>
343
355
  > # You can omit --to, it will take "HEAD" as default value
344
- > $ sfdx sgd:source:delta --from "HEAD^" --output changed-sources/ --generate-delta
356
+ > $ sfdx sgd:source:delta --from "HEAD~1" --output changed-sources/ --generate-delta
345
357
  > ```
346
358
 
347
359
  Then it is possible to deploy the `change-sources` folder using `force:source:deploy` command with `-p` parameter:
@@ -19,7 +19,9 @@ const fsExists = async (dir, fn) => {
19
19
  const dirExists = async (dir) => await fsExists(dir, 'isDirectory');
20
20
  const fileExists = async (file) => await fsExists(file, 'isFile');
21
21
  const isGit = async (dir) => {
22
- return await dirExists(join(dir, GIT_FOLDER));
22
+ const isGitDir = await dirExists(join(dir, GIT_FOLDER));
23
+ const isGitFile = await fileExists(join(dir, GIT_FOLDER));
24
+ return isGitDir || isGitFile;
23
25
  };
24
26
  const isBlank = str => !str || /^\s*$/.test(str);
25
27
  const GIT_SHA_PARAMETERS = ['to', 'from'];
@@ -1 +1 @@
1
- {"version":3,"file":"cliHelper.js","sourceRoot":"","sources":["../../src/utils/cliHelper.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,MAAM,WAAW,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;AAC5C,MAAM,QAAQ,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;AACzC,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;AACxC,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAA;AACvD,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAA;AACnE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAClC,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAA;AACvC,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAEhC,MAAM,QAAQ,GAAG,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE;IACjC,IAAI;QACF,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,CAAA;QAC1B,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAA;KAChB;IAA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AC,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;QACjD,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QACrD,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QACrD,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QACrD,IAAI,CAAC,MAAM,CAAC,iBAAiB,GAAG,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAA;QAC3E,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;QACvD,IAAI,CAAC,MAAM,CAAC,kBAAkB,GAAG,YAAY,CAC3C,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAC/B,CAAA;IACH,CAAC;;AAEM,0BAAgB,GAAG,MAAM,CAAA;AACzB,8BAAoB,GAAG,UAAU,CAAA;AACjC,8BAAoB,GAAG,GAAG,CAAA;AAC1B,4BAAkB,GAAG,GAAG,CAAA;AACxB,8BAAoB,GAAG,GAAG,CAAA;AAEnC,MAAM,CAAC,OAAO,GAAG,SAAS,CAAA"}
@@ -1 +1 @@
1
- {"version":"5.4.2","commands":{"sgd:source:delta":{"id":"sgd:source:delta","description":"Generate the sfdx content in source format and destructive change from two git commits","usage":"<%= command.id %> -f <string> [-t <string>] [-r <filepath>] [-i <filepath>] [-D <filepath>] [-s <filepath>] [-W] [-o <filepath>] [-a <number>] [-d] [-n <filepath>] [-N <filepath>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"sfdx-git-delta","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"to":{"name":"to","type":"option","char":"t","description":"commit sha to where the diff is done","default":"HEAD"},"from":{"name":"from","type":"option","char":"f","description":"commit sha from where the diff is done [git rev-list --max-parents=0 HEAD]","required":true},"repo":{"name":"repo","type":"option","char":"r","description":"git repository location","default":"."},"ignore":{"name":"ignore","type":"option","char":"i","description":"file listing paths to explicitly ignore for any diff actions"},"ignore-destructive":{"name":"ignore-destructive","type":"option","char":"D","description":"file listing paths to explicitly ignore for any destructive actions"},"source":{"name":"source","type":"option","char":"s","description":"source folder focus location related to --repo","default":"."},"ignore-whitespace":{"name":"ignore-whitespace","type":"boolean","char":"W","description":"ignore git diff whitespace (space, tab, eol) changes","allowNo":false},"output":{"name":"output","type":"option","char":"o","description":"source package specific output","default":"./output"},"api-version":{"name":"api-version","type":"option","char":"a","description":"salesforce API version","default":55},"generate-delta":{"name":"generate-delta","type":"boolean","char":"d","description":"generate delta files in [--output] folder","allowNo":false},"include":{"name":"include","type":"option","char":"n","description":"file listing paths to explicitly include for any diff actions"},"include-destructive":{"name":"include-destructive","type":"option","char":"N","description":"file listing paths to explicitly include for any destructive actions"}},"args":[]}}}
1
+ {"version":"5.5.0","commands":{"sgd:source:delta":{"id":"sgd:source:delta","description":"Generate the sfdx content in source format and destructive change from two git commits","usage":"<%= command.id %> -f <string> [-t <string>] [-r <filepath>] [-i <filepath>] [-D <filepath>] [-s <filepath>] [-W] [-o <filepath>] [-a <number>] [-d] [-n <filepath>] [-N <filepath>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"sfdx-git-delta","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"to":{"name":"to","type":"option","char":"t","description":"commit sha to where the diff is done","default":"HEAD"},"from":{"name":"from","type":"option","char":"f","description":"commit sha from where the diff is done [git rev-list --max-parents=0 HEAD]","required":true},"repo":{"name":"repo","type":"option","char":"r","description":"git repository location","default":"."},"ignore":{"name":"ignore","type":"option","char":"i","description":"file listing paths to explicitly ignore for any diff actions"},"ignore-destructive":{"name":"ignore-destructive","type":"option","char":"D","description":"file listing paths to explicitly ignore for any destructive actions"},"source":{"name":"source","type":"option","char":"s","description":"source folder focus location related to --repo","default":"."},"ignore-whitespace":{"name":"ignore-whitespace","type":"boolean","char":"W","description":"ignore git diff whitespace (space, tab, eol) changes","allowNo":false},"output":{"name":"output","type":"option","char":"o","description":"source package specific output","default":"./output"},"api-version":{"name":"api-version","type":"option","char":"a","description":"salesforce API version","default":55},"generate-delta":{"name":"generate-delta","type":"boolean","char":"d","description":"generate delta files in [--output] folder","allowNo":false},"include":{"name":"include","type":"option","char":"n","description":"file listing paths to explicitly include for any diff actions"},"include-destructive":{"name":"include-destructive","type":"option","char":"N","description":"file listing paths to explicitly include for any destructive actions"}},"args":[]}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfdx-git-delta",
3
- "version": "5.4.2",
3
+ "version": "5.5.0",
4
4
  "description": "Generate the sfdx content in source format and destructive change from two git commits",
5
5
  "keyword": [
6
6
  "salesforce",
@@ -50,6 +50,7 @@
50
50
  "lint": "eslint .",
51
51
  "lint:fix": "eslint --fix .",
52
52
  "test": "jest",
53
+ "test:build:local": "rm -rf node_modules && yarn && yarn pack && yarn test",
53
54
  "test:clear:cache": "jest --clearCache",
54
55
  "test:coverage": "jest --coverage",
55
56
  "test:debug": "node --inspect node_modules/.bin/jest",
@@ -66,20 +67,20 @@
66
67
  "upgrade:dependencies": "yarn yarn-upgrade-all"
67
68
  },
68
69
  "devDependencies": {
69
- "@commitlint/cli": "^17.0.3",
70
- "@commitlint/config-angular": "^17.0.3",
71
- "@commitlint/prompt-cli": "^17.0.3",
70
+ "@commitlint/cli": "^17.1.2",
71
+ "@commitlint/config-angular": "^17.1.0",
72
+ "@commitlint/prompt-cli": "^17.1.2",
72
73
  "@oclif/dev-cli": "^1.26.10",
73
74
  "@oclif/plugin-help": "^5.1.12",
74
75
  "@oclif/test": "^2.1.1",
75
76
  "@salesforce/dev-config": "^3.1.0",
76
77
  "@types/chai": "^4.3.3",
77
78
  "@types/mocha": "^9.1.1",
78
- "@types/node": "^18.7.13",
79
- "@typescript-eslint/eslint-plugin": "^5.35.1",
80
- "@typescript-eslint/parser": "^5.35.1",
79
+ "@types/node": "^18.7.14",
80
+ "@typescript-eslint/eslint-plugin": "^5.36.1",
81
+ "@typescript-eslint/parser": "^5.36.1",
81
82
  "conventional-github-releaser": "^3.1.5",
82
- "eslint": "^8.22.0",
83
+ "eslint": "^8.23.0",
83
84
  "eslint-config-prettier": "^8.5.0",
84
85
  "eslint-config-salesforce-typescript": "^1.1.1",
85
86
  "eslint-plugin-import": "^2.26.0",