]> source.dussan.org Git - gitea.git/commit
Add .gitattribute assisted language detection to blame, diff and render (#17590)
authorzeripath <art27@cantab.net>
Wed, 17 Nov 2021 20:37:00 +0000 (20:37 +0000)
committerGitHub <noreply@github.com>
Wed, 17 Nov 2021 20:37:00 +0000 (20:37 +0000)
commit3c4724d70e4ac7bfc06b97f6fad8936f97479b6b
tree754286def789b823e020d3ccfafae148d0017b62
parent81a4fc752833101dd7d6b4f612bccc4b29c98dff
Add .gitattribute assisted language detection to blame, diff and render (#17590)

Use check attribute code to check the assigned language of a file and send that in to
chroma as a hint for the language of the file.

Signed-off-by: Andrew Thornton <art27@cantab.net>
13 files changed:
docs/content/doc/advanced/config-cheat-sheet.en-us.md
modules/git/repo_attribute.go
modules/git/repo_index.go
modules/git/repo_language_stats_gogit.go
modules/git/repo_language_stats_nogogit.go
modules/highlight/highlight.go
modules/highlight/highlight_test.go
modules/indexer/code/search.go
modules/repofiles/diff_test.go
routers/web/repo/blame.go
routers/web/repo/view.go
services/gitdiff/gitdiff.go
services/gitdiff/gitdiff_test.go