[PR #270] Fix subtle intra-line deletion tracking bug #367

Closed
opened 2026-03-02 04:13:25 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/git-ai-project/git-ai/pull/270

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/git-ai-project/git-ai/pull/270 **State:** closed **Merged:** Yes --- 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.
kerem 2026-03-02 04:13:25 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#367
No description provided.