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.
gitea/templates/repo/diff
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
4 years ago
..
blob_excerpt.tmpl
box.tmpl Use git attributes to determine generated and vendored status for language stats and diffs (#16773) 4 years ago
comment_form.tmpl
comment_form_datahandler.tmpl
comments.tmpl
compare.tmpl Handle too long PR titles correctly (#16517) 4 years ago
conversation.tmpl Fix previous/next button size (#16284) 4 years ago
csv_diff.tmpl
image_diff.tmpl
new_comment.tmpl
new_review.tmpl
options_dropdown.tmpl
section_split.tmpl Simplify split diff view generation and remove JS dependency (#16775) 4 years ago
section_unified.tmpl
stats.tmpl
whitespace_dropdown.tmpl