Skip to content
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

Refactor merge option a bit #160

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

svenstaro
Copy link
Contributor

I think the earlier way the merge option was implemented was a bit surprising to the user and entirely undocumented in that. It created a new file _merged instead of the actual given path name. I think if a user provides --merge with a file, that file being the merged file is the expected outcome.

This refactors the merge functionality while providing a clear separation in terms of code paths for merged and unmerged paths while being overall less complex and less code to maintain.

This also fixes #159.

Copy link
Member

@jessebraham jessebraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this! I agree this is more in line with how I would expect it to work.

@jessebraham jessebraham merged commit 841db26 into esp-rs:master Apr 27, 2022
@svenstaro svenstaro deleted the refactor-merge-option branch April 30, 2022 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running --merge for any path but the current local dir results in file not found
2 participants