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

Change RemoveDuplicateFiles & FixMissingFiles to only save on change #499

Merged
merged 1 commit into from
Jul 16, 2014

Conversation

bentayloruk
Copy link
Contributor

RemoveDuplicateFiles & FixMissingFiles overwrite the existing project file, even when there are no changes. If an editor is open, the change in the file modified attribute, triggers a reload. This PR changes the functions to only write when changes are detected.

This is the simplest fix I could make and is not tested. I'll tidy up if you are OK with this in principle.

…Project instances only when there are actually changes (prevents project file modified datetime change and reload in editor).
@forki
Copy link
Member

forki commented Jul 12, 2014

I like the idea. "approved in principle" as @dsyme would say. ;-)
On Jul 12, 2014 12:04 AM, "Ben Taylor" notifications@github.com wrote:

RemoveDuplicateFiles & FixMissingFiles overwrite the existing project
file, even when there are no changes. If an editor is open, the change in
the file modified attribute, triggers a reload. This PR changes the
function to only write when changes are detected.

*This is the simplest fix I could make and is not tested. I'll tidy up if

you are OK with this in principle.*

You can merge this Pull Request by running

git pull https://github.com/bentayloruk/FAKE fixprojectfiles-no-op

Or view, comment on, or merge it at:

#499
Commit Summary

  • Change RemoveDuplicateFiles and FixMissingFiles to save the their
    newProject instances only when there are actually changes (prevents project
    file modified datetime change and reload in editor).

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#499.

forki added a commit that referenced this pull request Jul 16, 2014
Change RemoveDuplicateFiles & FixMissingFiles to only save on change
@forki forki merged commit 2123574 into fsprojects:master Jul 16, 2014
@bentayloruk
Copy link
Contributor Author

Sweet! I never even had to do the "tidy up" :)

@bentayloruk bentayloruk deleted the fixprojectfiles-no-op branch July 17, 2014 15:38
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.

2 participants