cp: handle update prompt with and without interactive mode enabled #6207
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is #6069.
To recap what this PR does: If
-u
is given, don't consider overwriting. If not considering overwriting, don't ask even if-i
is given.Reason: While trying to rebase and push his PR, I accidentally overwrite Vikrant's
main
branch, which caused his original PR to be closed, which caused me no longer having implicit write permission to his branch. I guess I'll just never use that GitHub feature again.@Vikrant2691 Please sanity-check whether this looks correct.
git diff
says there is no difference in content between c94809b (your original final commit) and 9b9c0cc (this commit).