forgejo-federation/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 Fix whitespace rendering in diff (#13415) 2020-11-04 09:14:07 +02:00
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 Pull request review/approval and comment on code (#3748) 2018-08-06 06:43:21 +02:00
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 Enforce tab indentation in templates (#15289) 2021-04-10 23:46:37 -04:00
image_diff.tmpl Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
new_comment.tmpl Do not reload page after adding comments in Pull Request reviews (#13877) 2021-01-08 23:49:55 +02:00
new_review.tmpl Add attachments for PR reviews (#16075) 2021-06-14 21:12:33 -04:00
options_dropdown.tmpl Comment box tweaks and SVG dropdown triangles (#13376) 2020-10-31 18:15:11 -04:00
section_split.tmpl Simplify split diff view generation and remove JS dependency (#16775) 2021-08-29 15:28:04 +01:00
section_unified.tmpl Do not reload page after adding comments in Pull Request reviews (#13877) 2021-01-08 23:49:55 +02:00
stats.tmpl Search and Diff CSS enhancements (#14050) 2020-12-20 13:00:03 -05:00
whitespace_dropdown.tmpl Comment box tweaks and SVG dropdown triangles (#13376) 2020-10-31 18:15:11 -04:00