-
-
Notifications
You must be signed in to change notification settings - Fork 425
Show a diff when a file will be or gets modified #1385
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
Working on some improvements to not use `host.get_file' |
c4d16c8
to
4844468
Compare
This is awesome, just noting I'm not forgetting it. Need to handle when to show/not show the diff (ie when |
Right, maybe it would be best to add a new flag for that. I always would like to see the diff, even when not using I was also thinking to add a global flag, which also can be used to override single operations. In case people do not want to show it for e.g. editing a file with passwords. |
I also think it's good to show the diffs without verbose logging, that's how I currently use it. A command line switch could indeed be enough. @jgelens thanks for pushing this over the finish line. When you're pushing other changes, would you mind adding a |
Of course, added. |
👍 for |
be64dff
to
190c760
Compare
I've been waiting on this PR, really excited to see it so close to inclusion :) Thanks heaps to everyone involved! |
@jgelens are you happy for me to finish this up with the |
Yeah sure, no problem. Otherwise I can do it next week or so. |
Co-authored-by: Xavier Vello <xavier.vello@gmail.com>
@jgelens sorry for the delay - I think this is correct, thank you! It's made me think we should (not now) move the -v flags over from state -> config to match, and also that |
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.
Awesome stuff, @jgelens, very excited to land this!
Now shows a diff of files which will be modified, only when its checksum its different.
Thanks @xvello (#985 (comment)) for the code!
This solves #985
3.x
at this time)scripts/dev-test.sh
)scripts/dev-lint.sh
)