0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-07-03 09:48:31 +02:00
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
2021-09-09 21:13:36 +01:00
..
blob_excerpt.tmpl
box.tmpl Use git attributes to determine generated and vendored status for language stats and diffs (#16773) 2021-09-09 21:13:36 +01:00
comment_form.tmpl Fix spelling (#16179) 2021-06-16 23:56:43 +02:00
comment_form_datahandler.tmpl
comments.tmpl Make tasklist checkboxes clickable (#15791) 2021-05-23 17:14:03 +03:00
compare.tmpl Handle too long PR titles correctly (#16517) 2021-07-25 03:59:27 +01:00
conversation.tmpl Fix previous/next button size (#16284) 2021-06-28 21:36:09 +02:00
csv_diff.tmpl
image_diff.tmpl Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
new_comment.tmpl
new_review.tmpl Add attachments for PR reviews (#16075) 2021-06-14 21:12:33 -04:00
options_dropdown.tmpl
section_split.tmpl Simplify split diff view generation and remove JS dependency (#16775) 2021-08-29 15:28:04 +01:00
section_unified.tmpl
stats.tmpl
whitespace_dropdown.tmpl