0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-24 23:06:09 -05:00
forgejo/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
avatar
base
cache
charset
context
convert
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
hcaptcha
highlight
httpcache
httplib
indexer
json
lfs
log
markup In Render tolerate not being passed a context (#16842) 2021-08-28 21:15:56 +01:00
matchlist
metrics
migrations Make TestOneDevDownloadRepo work again & more resistant (#16987) 2021-09-08 16:17:22 +02:00
nosql
notification
options
password
pprof
private Fix dump and restore respository (#16698) 2021-08-30 21:18:15 -04:00
process
proxy
public
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
svg
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