forgejo/templates
zeripath 248b96d8a3
Use git attributes to determine generated and vendored status for language stats and diffs (#16773)
Replaces #16262
Replaces #16250
Replaces #14833

This PR first implements a `git check-attr` pipe reader - using `git check-attr --stdin -z --cached` - taking account of the change in the output format in git 1.8.5 and creates a helper function to read a tree into a temporary index file for that pipe reader.

It then wires this in to the language stats helper and into the git diff generation.

Files which are marked generated will be folded by default.

Fixes #14786
Fixes #12653
2021-09-09 21:13:36 +01:00
..
admin Ensure that the default visibility is set on the user create page (#16845) 2021-08-28 15:19:52 +01:00
base Make Mermaid.js limit configurable (#16519) 2021-07-24 00:21:51 -04:00
custom
explore Issue sidebar and misc css fixes (#15524) 2021-05-16 22:18:18 +02:00
mail Fix issue with issue default mail template (#16956) 2021-09-05 09:06:20 +01:00
org Make mirror feature more configurable (#16957) 2021-09-07 17:49:36 +02:00
repo Use git attributes to determine generated and vendored status for language stats and diffs (#16773) 2021-09-09 21:13:36 +01:00
shared Remove branch URL before IssueRefURL (#15968) 2021-05-25 16:02:37 -04:00
status Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00
swagger Add option to update pull request by rebase (#16125) 2021-08-31 16:03:45 +02:00
user Prevent leave changes dialogs due to autofill fields (#16912) 2021-09-02 13:14:37 +01:00
home.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00
install.tmpl Remove utf8 option from installation page (#16126) 2021-06-10 16:52:37 +08:00
post-install.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00