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.
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
..
blob_excerpt.tmpl Fix whitespace rendering in diff (#13415) 4 years ago
box.tmpl Use git attributes to determine generated and vendored status for language stats and diffs (#16773) 3 years ago
comment_form.tmpl Fix spelling (#16179) 3 years ago
comment_form_datahandler.tmpl Pull request review/approval and comment on code (#3748) 6 years ago
comments.tmpl Make tasklist checkboxes clickable (#15791) 3 years ago
compare.tmpl Handle too long PR titles correctly (#16517) 3 years ago
conversation.tmpl Fix previous/next button size (#16284) 3 years ago
csv_diff.tmpl Enforce tab indentation in templates (#15289) 3 years ago
image_diff.tmpl Add Image Diff for SVG files (#14867) 3 years ago
new_comment.tmpl Do not reload page after adding comments in Pull Request reviews (#13877) 4 years ago
new_review.tmpl Add attachments for PR reviews (#16075) 3 years ago
options_dropdown.tmpl Comment box tweaks and SVG dropdown triangles (#13376) 4 years ago
section_split.tmpl Simplify split diff view generation and remove JS dependency (#16775) 3 years ago
section_unified.tmpl Do not reload page after adding comments in Pull Request reviews (#13877) 4 years ago
stats.tmpl Search and Diff CSS enhancements (#14050) 4 years ago
whitespace_dropdown.tmpl Comment box tweaks and SVG dropdown triangles (#13376) 4 years ago