1
1
mirror of https://github.com/go-gitea/gitea.git synced 2026-03-10 13:58:22 +01:00
gitea/services/gitdiff
bytedream 47085f3fa0
Fix incorrect viewed files counter if reverted change was viewed (#36819)
If a file is marked as viewed in a PR and all changes to those file are
reverted afterwards, the file is still stored as viewed in the db, which
causes an incorrect viewed files counter

---

<img width="468" height="139" alt="image"
src="https://github.com/user-attachments/assets/f13bf161-142d-49a9-8425-3884ee7abb84"
/>
2026-03-09 08:23:36 +00:00
..
csv_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
csv.go Enable nilnil linter for new code (#36591) 2026-02-16 09:57:18 +00:00
git_diff_tree_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
git_diff_tree.go Improve diff file headers (#36215) 2026-01-12 20:29:35 +08:00
gitdiff_excerpt_test.go Use full-file highlighting for diff sections (#36561) 2026-02-10 03:29:28 +00:00
gitdiff_excerpt.go Refactor highlight and diff (#36599) 2026-02-13 00:15:46 +00:00
gitdiff_test.go Fix incorrect viewed files counter if reverted change was viewed (#36819) 2026-03-09 08:23:36 +00:00
gitdiff.go Fix incorrect viewed files counter if reverted change was viewed (#36819) 2026-03-09 08:23:36 +00:00
highlightdiff_test.go Refactor highlight and diff (#36599) 2026-02-13 00:15:46 +00:00
highlightdiff.go Fine tune diff highlighting (#36592) 2026-02-12 07:01:36 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
submodule_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
submodule.go Improve submodule relative path handling (#35056) 2025-07-14 23:28:34 +08:00