-
Notifications
You must be signed in to change notification settings - Fork 6
diff: support --overlay flag on diff command #710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Polo2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR, and the clear details about both refacto and new feature.
I understand we can call bump diff command with overlays, but I'd need more context to understand how to use this new feature.
Would it be possible to mention this new feature in output of bump diff --help, maybe in readme, and add some tests?
e825e0f to
ee990f1
Compare
This commit is both a refactoring (to move the logic to apply overlays inside the `definition.extractDefinition` to DRY the code and simplify extracting an overlayed definition) and a new feature. The new feature is to allow the `--overlay` flag on the `bump diff` command to be able to apply a list of overlays to the files before creating the diff. The feature was asked by @JakeSCahill (thanks for asking it makes a lot of sense to have it for the diff command too)
ee990f1 to
60bdb1a
Compare
|
friendly ping @Polo2 |
Polo2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks for your patience, this new feature looks indeed a very good way to use overlay for diff purpose.
LGTM, thanks ✨
This was overseen in bump-sh#710 where I applied overlays only on public diffs, and not on authenticated diffs 🤦 Sorry about that!
This was overseen in bump-sh#710 where I applied overlays only on public diffs, and not on authenticated diffs 🤦 Sorry about that!
This commit is both a refactoring (to move the logic to apply overlays
inside the
definition.extractDefinitionto DRY the code and simplifyextracting an overlayed definition) and a new feature.
The new feature is to allow the
--overlayflag on thebump diffcommand to be able to apply a list of overlays to the files before
creating the diff.
The feature was asked by @JakeSCahill (thanks for asking it makes a
lot of sense to have it for the diff command too)