-
Notifications
You must be signed in to change notification settings - Fork 607
Skip rewriting output files if unchanged #626
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). For more information, open the CLA check for this pull request. |
47afa5e
to
6711b2a
Compare
@codyoss let me know if you need anything else to review here. Thank you! |
Gentle ping @codyoss This is a simple change that has a positive impact on IDEs and other tools that rescan on changed files. |
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.
Just a small change
When running mockgen with the output option this checks if the existing file content already exists and skips writing if there is nothing to change. This will help reduce i/o when changing lots of files, but also reduce the re-indexing triggering in IDEs. Solves golang#604
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.
Just one last nit and then I think this is good to go, thanks!
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!
skip rewriting output files if unchanged (golang#626)
When running mockgen with the output option this checks if the existing file content already exists and skips writing if there is nothing to change.
This will help reduce i/o when changing lots of files, but also reduce the re-indexing triggering in IDEs.
Solves #604