Skip to content

Refactor merge option a bit#160

Merged
jessebraham merged 1 commit into
esp-rs:masterfrom
svenstaro:refactor-merge-option
Apr 27, 2022
Merged

Refactor merge option a bit#160
jessebraham merged 1 commit into
esp-rs:masterfrom
svenstaro:refactor-merge-option

Conversation

@svenstaro
Copy link
Copy Markdown
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
Copy Markdown
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