-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
(PUP-9001) Show diff for new files #8890
base: main
Are you sure you want to change the base?
Conversation
Prior to this commit when :show_diff is set, file diffs are only shown when modifying an existing file. However, it is often very helpful to see the diff for a new file as well, either in testing or production logs. After this commit diffs are shown for new files as well. Diffs are performed against NUL(windows) or (/dev/null)(all others) to ensure compatibility with custom diff commands.
Can one of the admins verify this patch? |
@joshcooper any chance you could review? |
@joshcooper friendly bump for a review |
I am hesitant about this. Enabling That said, I do see value if that's intentionally what you want. I wonder about changing it to a ternary instead. |
Definitely important concerns, thanks for raising them. I traditionally have not used a puppet server, so large reports are not something I have had to deal with.
If a ternary is necessary to prevent surprising behavior, I can certainly update the pull request, how about these values:
|
This is definitely something I have wanted. |
Prior to this commit when :show_diff is set, file diffs are only shown
when modifying an existing file. However, it is often very helpful to
see the diff for a new file as well, either in testing or production
logs.
After this commit diffs are shown for new files as well. Diffs are
performed against NUL(windows) or (/dev/null)(all others) to ensure
compatibility with custom diff commands.