]> source.dussan.org Git - gitea.git/commitdiff
Update .gitattributes for .tmpl files (#18576)
authorsilverwind <me@silverwind.io>
Thu, 3 Feb 2022 15:30:26 +0000 (07:30 -0800)
committerGitHub <noreply@github.com>
Thu, 3 Feb 2022 15:30:26 +0000 (15:30 +0000)
There are a few .tmpl files outside the templates directory. Match these
as well by using `*.tmpl` glob in `.gitattributes`. Also, sort the file
alphabetically.

.gitattributes

index 4e83849e03e7e13d9265b6fd6b04a3f1ce332676..12c45dbc6a078663a4d1083d37f744e12fcc7edc 100644 (file)
@@ -1,9 +1,9 @@
 * text=auto eol=lf
-/vendor/** -text -eol linguist-vendored
-/public/vendor/** -text -eol linguist-vendored
-/web_src/js/vendor/** -text -eol linguist-vendored
-/templates/**/*.tmpl linguist-language=Handlebars
+*.tmpl linguist-language=Handlebars
 /.eslintrc linguist-language=YAML
 /.stylelintrc linguist-language=YAML
+/public/vendor/** -text -eol linguist-vendored
+/vendor/** -text -eol linguist-vendored
 /web_src/fomantic/build/** linguist-generated
+/web_src/js/vendor/** -text -eol linguist-vendored
 Dockerfile.* linguist-language=Dockerfile