gitea/modules
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
..
analyze Use git attributes to determine generated and vendored status for language stats and diffs (#16773) 2021-09-09 21:13:36 +01:00
auth Add bundle download for repository (#14538) 2021-08-24 11:47:09 -05:00
avatar
base
cache
charset
context [API] generalize list header (#16551) 2021-08-12 14:43:08 +02:00
convert Add migrate from OneDev (#16356) 2021-08-22 00:47:45 +02:00
cron
csv
doctor Fix storage Iterate bug and Add storage doctor to delete garbage attachments (#16971) 2021-09-06 16:46:20 +02:00
emoji
eventsource
generate
git Use git attributes to determine generated and vendored status for language stats and diffs (#16773) 2021-09-09 21:13:36 +01:00
gitgraph
graceful Add bundle download for repository (#14538) 2021-08-24 11:47:09 -05:00
hcaptcha
highlight Just use a slice when rendering file (#16774) 2021-08-23 22:23:39 +01:00
httpcache
httplib
indexer
json
lfs Add bundle download for repository (#14538) 2021-08-24 11:47:09 -05:00
log
markup In Render tolerate not being passed a context (#16842) 2021-08-28 21:15:56 +01:00
matchlist
metrics Separate open and closed issue in metrics (#16637) 2021-08-07 12:43:50 +03:00
migrations Make TestOneDevDownloadRepo work again & more resistant (#16987) 2021-09-08 16:17:22 +02:00
nosql
notification
options Add bundle download for repository (#14538) 2021-08-24 11:47:09 -05:00
password
pprof
private Fix dump and restore respository (#16698) 2021-08-30 21:18:15 -04:00
process
proxy Return nil proxy function if proxy not enabled (#16742) 2021-08-19 16:41:20 -04:00
public Add bundle download for repository (#14538) 2021-08-24 11:47:09 -05:00
queue Use immediate queues in integration tests and ensure that immediate (#16927) 2021-09-03 11:20:57 +01:00
recaptcha
references
repofiles Simplify split diff view generation and remove JS dependency (#16775) 2021-08-29 15:28:04 +01:00
repository Refactor the fork service slightly to take ForkRepoOptions (#16744) 2021-08-28 16:37:14 +08:00
secret
session
setting Enable Malayalam, Greek, Persian, Hungarian & Indonesian by default (#16998) 2021-09-09 14:16:42 +08:00
ssh
storage Fix storage Iterate bug and Add storage doctor to delete garbage attachments (#16971) 2021-09-06 16:46:20 +02:00
structs Add migrate from OneDev (#16356) 2021-08-22 00:47:45 +02:00
svg Add bundle download for repository (#14538) 2021-08-24 11:47:09 -05:00
sync
task Fix bug of migrated repository not index (#16991) 2021-09-08 18:43:19 +01:00
templates Add missing icon set for ActionRenameRepo (#16972) 2021-09-06 16:11:17 +02:00
test
timeutil
translation
typesniffer
upload
uri
user
util
validation
web