You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
3 years ago
..
admin Ensure that the default visibility is set on the user create page (#16845) 3 years ago
base Make Mermaid.js limit configurable (#16519) 3 years ago
custom Add footer extra links template (#9576) 5 years ago
explore Issue sidebar and misc css fixes (#15524) 3 years ago
mail Fix issue with issue default mail template (#16956) 3 years ago
org Make mirror feature more configurable (#16957) 3 years ago
repo Use git attributes to determine generated and vendored status for language stats and diffs (#16773) 3 years ago
shared Remove branch URL before IssueRefURL (#15968) 3 years ago
status Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 3 years ago
swagger Add option to update pull request by `rebase` (#16125) 3 years ago
user Prevent leave changes dialogs due to autofill fields (#16912) 3 years ago
home.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 3 years ago
install.tmpl Remove utf8 option from installation page (#16126) 3 years ago
post-install.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 3 years ago