Skip to content

Conversation

@svarlamov
Copy link
Collaborator

@svarlamov svarlamov commented Dec 6, 2025

Unrelated to imara_diff migration, but I caught it while working on the migration. Git AI was not properly changing line attribution in the case where a pure deletion was made on a single line, for ex changing a line from Hello world to just Hello would leave the original attribution. The root cause of this bug is that the new attribution for the deletion wasn't being saved, because it had no length. Added a new 'tombstone' attribution and tests to make sure Git AI properly attributes such changes in checkpoints.

@svarlamov svarlamov force-pushed the fix/ai-line-attr-imara-bugs branch from 630482f to b37053b Compare December 7, 2025 00:56
Repository owner deleted a comment from git-ai-bot-nightly bot Dec 7, 2025
@svarlamov svarlamov changed the title Fix/ai line attr imara bugs Fix subtle intra-line deletion tracking bug Dec 8, 2025
@svarlamov svarlamov marked this pull request as ready for review December 8, 2025 16:37
@svarlamov svarlamov merged commit 19ccf1d into main Dec 8, 2025
6 checks passed
@svarlamov svarlamov deleted the fix/ai-line-attr-imara-bugs branch December 8, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants