Fix missing diff hunks in single-file worktrees (#24377)

Release Notes:

- Fixed diff hunks not appearing when opening a single file within a
larger repository
01bcbf3b0dCole Miller committed on 2/6/2025, 3:13:56 PM· committed by GitHubparent592642f
2 files changedLine totals unavailable