Files
gitea/modules/git
290568a07b fix: off-by-one errors in code comment patches (#39887) (#39904)
Backport #39887 by @silverwind

Code comments next to a diff hunk could show one line too high in the
conversation view vs. in the code view that showed them on the correct
line.

- Treat the hunk end in `CutDiffAroundLine` as exclusive, so the line
after a hunk falls back to the unchanged-line context
- Don't count `\ No newline at end of file` markers as lines when
cutting the hunk
- Share the unchanged-line fallback with migrated review comments

Co-authored-by: silverwind <me@silverwind.io>
2026-10-20 20:37:19 -07:00
..
2026-08-07 02:44:55 +00:00
2026-08-05 00:17:07 +08:00
2026-08-05 00:17:07 +08:00
2026-08-05 00:17:07 +08:00
2026-08-05 00:17:07 +08:00
2026-08-05 00:17:07 +08:00
2025-07-30 07:08:59 +00:00