-
Notifications
You must be signed in to change notification settings - Fork 1.7k
internal: Tweak change collapsing #14034
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
026a61b
to
fe30f3c
Compare
Not really tested, merge with care 😅. |
d4598f6
to
0e265c3
Compare
(Modify, Modify) => {} | ||
// equivalent to `Modify` | ||
(change @ Delete, Create) => *change = Modify, | ||
// shouldn't occur, but collapse into `Create` |
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.
Small change in behavior on these two.
// We need to fix up the changed events a bit. If we have a create or modify for a file | ||
// id that is followed by a delete we actually skip observing the file text from the | ||
// earlier event, to avoid problems later on. | ||
file_changes.clear(); |
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.
this clear seems unnecessary
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.
Indeed, fixed.
0e265c3
to
683cc8b
Compare
683cc8b
to
deff5f2
Compare
This wasn't was actually no longer dropping the |
@bors r+ |
☀️ Test successful - checks-actions |
1 similar comment
☀️ Test successful - checks-actions |
👀 Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request. |
CC #14025 (comment).