There are Show Diff... and Show Diff (all files)... actions in the KDevelop's Annotation Bar context menu. In case when a file was modified after the interesting commit, the line numbers in the current version of the file are different. After clicking Show Diff... KDevelop loads the current version of the file alongside the (correct) Overview tab and tries to show an old diff in this file. The diff is usually incorrect since the patch no longer applies to the new version of the file. I can think of two ways to deal with this issue: 1. Display the older version of the file in Patch Review mode - from the interesting commit. 2. Show only one tab - Overview - in this case. Reproducible: Always Steps to Reproduce: 1. Load a project with git VCS into KDevelop. 2. Open a file that has been changed several times. 3. Right click in the document area -> Git -> Annotation... 4. Pick an older commit in the middle of the document, right click on it in the Annotation Bar -> Show Diff... Actual Results: The (correct) diff in the Overview tab differs from the diff displayed in the next (file) tab. Expected Results: Diff is correct in all tabs.
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
The bug is still present in current KDevelop master - version 5.10.221170 (22.11.70)