gitea/services/gitdiff
wxiaoguang 6422f05a4e
Decouple diff stats query from actual diffing (#33810)
The diff stats are no longer part of the diff generation.
Use `GetDiffShortStat` instead to get the total number of changed files,
added lines, and deleted lines.
As such, `gitdiff.GetDiff` can be simplified:
It should not do more than expected.

And do not run "git diff --shortstat" for pull list. Fix #31492
2025-03-08 17:36:08 +08:00
..
csv_test.go Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
csv.go Use Go 1.21 and update dependencies (#26878) 2023-09-03 10:34:57 +00:00
git_diff_tree_test.go Add go wrapper around git diff-tree --raw -r -M (#33369) 2025-02-07 00:58:28 +00:00
git_diff_tree.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
gitdiff_test.go Decouple diff stats query from actual diffing (#33810) 2025-03-08 17:36:08 +08:00
gitdiff.go Decouple diff stats query from actual diffing (#33810) 2025-03-08 17:36:08 +08:00
highlightdiff_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
highlightdiff.go Add option to disable ambiguous unicode characters detection (#28454) 2023-12-17 14:38:54 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
submodule_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
submodule.go add submodule diff links (#33097) 2025-01-08 01:38:30 +00:00