git: Mark entries as pending when staging a files making the staged highlighting more "optimistic"#43434
Conversation
|
We require contributors to sign our Contributor License Agreement, and we don't have @van-sprundel on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
|
@cla-bot check |
85a56ae to
0486829
Compare
|
We require contributors to sign our Contributor License Agreement, and we don't have @van-sprundel on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
1 similar comment
|
We require contributors to sign our Contributor License Agreement, and we don't have @van-sprundel on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
0486829 to
ec007c3
Compare
ec007c3 to
933413f
Compare
|
Thanks! +1 for making this more optimistic, and I think the basic approach is right, but we can streamline the implementation a bit. The goal is to end up with a set of |
|
Will take a look at that later today! |
|
Hi @van-sprundel, thanks for updating the PR! I realized that the refactoring I suggested introduces a bug, where the staged status of the hunks flickers if you click the checkbox multiple times in quick succession (this is due to losing the |
|
I did notice that when you spam it, the visualization lags behind sometimes. Wondering why this makes such a difference because I wouldn't expect it to be slower |
b540c18 to
933413f
Compare
|
Reverted the commit :) |
|
Thanks! |
…ighlighting more "optimistic" (#43434) This at least speeds it up, not sure if this would close the issue On main (342eba6): https://github.com/user-attachments/assets/55d10187-b4e6-410d-9002-06509e8015c9 This branch: https://github.com/user-attachments/assets/e9a5c14f-9694-4321-a81c-88d6f62fb342 Closes #26870 Release Notes: - Added optimistic staged hunk updating
Relanding #43434 with an improved approach. Release Notes: - N/A --------- Co-authored-by: Ramon <55579979+van-sprundel@users.noreply.github.com>
…ighlighting more "optimistic" (#43434) This at least speeds it up, not sure if this would close the issue On main (342eba6): https://github.com/user-attachments/assets/55d10187-b4e6-410d-9002-06509e8015c9 This branch: https://github.com/user-attachments/assets/e9a5c14f-9694-4321-a81c-88d6f62fb342 Closes #26870 Release Notes: - Added optimistic staged hunk updating
Relanding #43434 with an improved approach. Release Notes: - N/A --------- Co-authored-by: Ramon <55579979+van-sprundel@users.noreply.github.com>
…ighlighting more "optimistic" (zed-industries#43434) This at least speeds it up, not sure if this would close the issue On main (342eba6): https://github.com/user-attachments/assets/55d10187-b4e6-410d-9002-06509e8015c9 This branch: https://github.com/user-attachments/assets/e9a5c14f-9694-4321-a81c-88d6f62fb342 Closes zed-industries#26870 Release Notes: - Added optimistic staged hunk updating
…staged highlighting more "optimistic"" (zed-industries#45175) Reverts zed-industries#43434 This caused a regression because the additional pending hunks don't get cleared.
…stries#45278) Relanding zed-industries#43434 with an improved approach. Release Notes: - N/A --------- Co-authored-by: Ramon <55579979+van-sprundel@users.noreply.github.com>
…ighlighting more "optimistic" (zed-industries#43434) This at least speeds it up, not sure if this would close the issue On main (342eba6): https://github.com/user-attachments/assets/55d10187-b4e6-410d-9002-06509e8015c9 This branch: https://github.com/user-attachments/assets/e9a5c14f-9694-4321-a81c-88d6f62fb342 Closes zed-industries#26870 Release Notes: - Added optimistic staged hunk updating
…staged highlighting more "optimistic"" (zed-industries#45175) Reverts zed-industries#43434 This caused a regression because the additional pending hunks don't get cleared.
…stries#45278) Relanding zed-industries#43434 with an improved approach. Release Notes: - N/A --------- Co-authored-by: Ramon <55579979+van-sprundel@users.noreply.github.com>
…ighlighting more "optimistic" (zed-industries#43434) This at least speeds it up, not sure if this would close the issue On main (342eba6): https://github.com/user-attachments/assets/55d10187-b4e6-410d-9002-06509e8015c9 This branch: https://github.com/user-attachments/assets/e9a5c14f-9694-4321-a81c-88d6f62fb342 Closes zed-industries#26870 Release Notes: - Added optimistic staged hunk updating
…staged highlighting more "optimistic"" (zed-industries#45175) Reverts zed-industries#43434 This caused a regression because the additional pending hunks don't get cleared.
…stries#45278) Relanding zed-industries#43434 with an improved approach. Release Notes: - N/A --------- Co-authored-by: Ramon <55579979+van-sprundel@users.noreply.github.com>
This at least speeds it up, not sure if this would close the issue
On main (342eba6):
Screen.Recording.2025-11-24.at.22.20.41.mov
This branch:
Screen.Recording.2025-11-24.at.22.16.56.mov
Closes #26870
Release Notes: