scolladon / sfdx-git-delta

Generate the sfdx content in source format from two git commits
Other
443 stars 115 forks source link

refactor: copy files smarter #672

Closed scolladon closed 1 year ago

scolladon commented 1 year ago

Explain your changes


Simplify InResourceHandler file copy implementation so it does less copy than before. This way it will do less call to git and less call to the file system. Give more tools to the standardHander to:

Override metadata file name for SharedFolderHandler type as this type definition is shared with metadata leaving in the same folder

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (b140ad8) 100.00% compared to head (067bd58) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #672 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 32 32 Lines 900 905 +5 ========================================= + Hits 900 905 +5 ``` | [Files Changed](https://app.codecov.io/gh/scolladon/sfdx-git-delta/pull/672?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sebastien) | Coverage Δ | | |---|---|---| | [src/service/inFolderHandler.js](https://app.codecov.io/gh/scolladon/sfdx-git-delta/pull/672?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sebastien#diff-c3JjL3NlcnZpY2UvaW5Gb2xkZXJIYW5kbGVyLmpz) | `100.00% <ø> (ø)` | | | [src/post-processor/flowTranslationProcessor.js](https://app.codecov.io/gh/scolladon/sfdx-git-delta/pull/672?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sebastien#diff-c3JjL3Bvc3QtcHJvY2Vzc29yL2Zsb3dUcmFuc2xhdGlvblByb2Nlc3Nvci5qcw==) | `100.00% <100.00%> (ø)` | | | [src/service/botHandler.js](https://app.codecov.io/gh/scolladon/sfdx-git-delta/pull/672?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sebastien#diff-c3JjL3NlcnZpY2UvYm90SGFuZGxlci5qcw==) | `100.00% <100.00%> (ø)` | | | [src/service/inFileHandler.js](https://app.codecov.io/gh/scolladon/sfdx-git-delta/pull/672?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sebastien#diff-c3JjL3NlcnZpY2UvaW5GaWxlSGFuZGxlci5qcw==) | `100.00% <100.00%> (ø)` | | | [src/service/inResourceHandler.js](https://app.codecov.io/gh/scolladon/sfdx-git-delta/pull/672?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sebastien#diff-c3JjL3NlcnZpY2UvaW5SZXNvdXJjZUhhbmRsZXIuanM=) | `100.00% <100.00%> (ø)` | | | [src/service/sharedFolderHandler.js](https://app.codecov.io/gh/scolladon/sfdx-git-delta/pull/672?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sebastien#diff-c3JjL3NlcnZpY2Uvc2hhcmVkRm9sZGVySGFuZGxlci5qcw==) | `100.00% <100.00%> (ø)` | | | [src/service/standardHandler.js](https://app.codecov.io/gh/scolladon/sfdx-git-delta/pull/672?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sebastien#diff-c3JjL3NlcnZpY2Uvc3RhbmRhcmRIYW5kbGVyLmpz) | `100.00% <100.00%> (ø)` | | | [src/utils/fsHelper.js](https://app.codecov.io/gh/scolladon/sfdx-git-delta/pull/672?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sebastien#diff-c3JjL3V0aWxzL2ZzSGVscGVyLmpz) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codeclimate[bot] commented 1 year ago

Code Climate has analyzed commit 067bd583 and detected 0 issues on this pull request.

View more on Code Climate.

github-actions[bot] commented 1 year ago

Shipped in release v5.25.0. You can install the new version using the version number or the latest-rc channel

$ sfdx plugins:install sfdx-git-delta@latest-rc
$ sfdx plugins:install sfdx-git-delta@v5.25.0