gitea/templates/repo/diff
Lunny Xiao be2a6b4414
Fix bug when review pull request commits (#35192)
The commit range in the UI follows a half-open, half-closed convention:
(,]. When reviewing a range of commits, the beforeCommitID should be set
to the commit immediately preceding the first selected commit. For
single-commit reviews, we must identify and use the previous commit of
that specific commit.

The endpoint ViewPullFilesStartingFromCommit is currently unused and can
be safely removed.

Fix #35157 
Replace #35184 
Partially extract from #35077
2025-08-03 10:23:10 +07:00
..
blob_excerpt.tmpl Refactor tmpl and blob_excerpt (#32967) 2024-12-25 00:51:13 +07:00
box.tmpl Fix bug when review pull request commits (#35192) 2025-08-03 10:23:10 +07:00
comment_form.tmpl Fix various misalignments and overflows (#34227) 2025-04-17 10:32:41 +07:00
comment_form_datahandler.tmpl Make sure fmt catches all templates (#20979) 2022-08-31 23:58:54 +07:00
comments.tmpl Refactor view issue & comment list styles (#35061) 2025-07-13 22:52:35 +07:00
compare.tmpl Refactor commit message rendering and fix bugs (#34412) 2025-05-09 20:42:35 +07:00
conversation.tmpl Fix various UI problems (#34243) 2025-04-19 08:43:22 +07:00
conversation_outdated.tmpl Improve user experience for outdated comments (#29050) 2024-02-08 01:50:48 +07:00
csv_diff.tmpl Fix CSV diff for added/deleted files (#21189) 2022-09-17 10:45:32 +07:00
escape_title.tmpl Refactor tmpl and blob_excerpt (#32967) 2024-12-25 00:51:13 +07:00
image_diff.tmpl Fix various trivial frontend problems (#34263) 2025-04-24 09:11:54 +07:00
new_comment.tmpl
new_review.tmpl Hide/disable unusable UI elements when a repository is archived (#33459) 2025-01-31 20:47:31 +07:00
options_dropdown.tmpl Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2025-02-28 00:58:25 +07:00
section_code.tmpl Add template linting via djlint (#25212) 2023-06-14 18:17:58 +07:00
section_split.tmpl Refactor tmpl and blob_excerpt (#32967) 2024-12-25 00:51:13 +07:00
section_unified.tmpl De-emphasize signed commits (#31160) 2024-12-28 04:18:30 +07:00
stats.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +07:00
whitespace_dropdown.tmpl code optimization (#31315) 2024-06-11 21:07:10 +07:00