Skip to content

Conversation

@dinocosta
Copy link
Contributor

Update GitStore.on_buffer_store_event so that, when a BufferStoreEvent::BufferChangedFilePath event is received, we check if there's any diff state for the buffer and, if so, update it according to the new file path, in case the file exists in the repository.

Closes #40499

Release Notes:

  • Fixed issue with git diff tracking when updating a buffer's file from an untracked to a tracked file

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 4, 2025
@dinocosta dinocosta self-assigned this Nov 4, 2025
@dinocosta dinocosta marked this pull request as ready for review November 6, 2025 19:53
Update `GitStore.on_buffer_store_event` so that, when a
`BufferStoreEvent::BufferChangedFilePath` event is received, we check if
there's any diff state for the buffer and, if so, update it according to
the new file path, in case the file exists in the repository.
@dinocosta dinocosta force-pushed the 40499-git-file-rename branch from a4996d3 to 37fbc47 Compare November 6, 2025 20:39
@dinocosta dinocosta force-pushed the 40499-git-file-rename branch from 7d6b0b8 to cbb8ca4 Compare November 10, 2025 11:31
@dinocosta dinocosta merged commit d896af2 into main Nov 10, 2025
24 checks passed
@dinocosta dinocosta deleted the 40499-git-file-rename branch November 10, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Git diff highlighting doesn’t detect changes from rename + replacement of a committed file

2 participants