gitea/modules/indexer/code
wxiaoguang 0d8bd7720d
Refactor highlight and diff (#36599)
1. fix a performance regression when using line-by-line highlighting
* the root cause is that chroma's `lexers.Get` is slow and a lexer cache
is missing during recent changes
2. clarify the chroma lexer detection behavior
* now we fully manage our logic to detect lexer, and handle overriding
problems, everything is fully under control
3. clarify "code analyze" behavior, now only 2 usages:
* only use file name and language to detect lexer (very fast), mainly
for "diff" page which contains a lot of files
* if no lexer is detected by file name and language, use code content to
detect again (slow), mainly for "view file" or "blame" page, which can
get best result
4. fix git diff bug, it caused "broken pipe" error for large diff files
2026-02-13 00:15:46 +00:00
..
bleve Refactor git command stderr handling (#36402) 2026-01-18 15:10:33 -08:00
elasticsearch Refactor git command stderr handling (#36402) 2026-01-18 15:10:33 -08:00
gitgrep enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 -04:00
internal update golangci-lint to v2.7.0 (#36079) 2025-12-04 09:06:44 +00:00
git.go Refactor git command stderr handling (#36402) 2026-01-18 15:10:33 -08:00
indexer.go Fixing issue #35530: Password Leak in Log Messages (#35584) 2025-10-07 09:26:47 -07:00
indexer_test.go Fix various typos in codebase (#35480) 2025-09-13 10:34:43 -04:00
search.go Refactor highlight and diff (#36599) 2026-02-13 00:15:46 +00:00