gitea/services/gitdiff
Lunny Xiao ae0af8ea5b
Refactor Git Attribute & performance optimization (#34154)
This PR moved git attributes related code to `modules/git/attribute` sub
package and moved language stats related code to
`modules/git/languagestats` sub package to make it easier to maintain.

And it also introduced a performance improvement which use the `git
check-attr --source` which can be run in a bare git repository so that
we don't need to create a git index file. The new parameter need a git
version >= 2.40 . If git version less than 2.40, it will fall back to
previous implementation.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: yp05327 <576951401@qq.com>
2025-04-11 21:41:29 +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 Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
gitdiff_test.go Full-file syntax highlighting for diff pages (#33766) 2025-03-09 12:51:58 +08:00
gitdiff.go Refactor Git Attribute & performance optimization (#34154) 2025-04-11 21:41:29 +08:00
highlightdiff_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
highlightdiff.go enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 -04: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