mirror of
1
Fork 0
forgejo/services
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
..
agit Return correct error response for agit force-push (#16989) 2021-09-08 22:20:55 +02:00
archiver Add bundle download for repository (#14538) 2021-08-24 11:47:09 -05:00
attachment Add repo_id for attachment (#16958) 2021-09-08 17:19:30 +02:00
auth Allow BASIC authentication access to /:owner/:repo/releases/download/* (#16916) 2021-09-02 16:48:48 +01:00
comments Enhance Ghost comment mitigation Settings (#14392) 2021-01-21 21:56:19 -05:00
externalaccount Allow externalID to be UUID (#8551) 2019-10-17 10:06:28 +08:00
forms Added introspection endpoint. (#16752) 2021-08-20 22:16:45 -04:00
gitdiff Use git attributes to determine generated and vendored status for language stats and diffs (#16773) 2021-09-09 21:13:36 +01:00
issue Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
lfs Test if LFS object is accessible (#16865) 2021-08-31 14:35:08 +01:00
mailer Send registration email on user autoregistration (#16523) 2021-08-12 10:26:33 +03:00
mirror Make mirror feature more configurable (#16957) 2021-09-07 17:49:36 +02:00
pull Add option to update pull request by `rebase` (#16125) 2021-08-31 16:03:45 +02:00
release Add repo_id for attachment (#16958) 2021-09-08 17:19:30 +02:00
repository Refactor the fork service slightly to take ForkRepoOptions (#16744) 2021-08-28 16:37:14 +08:00
webhook Add proxy settings and support for migration and webhook (#16704) 2021-08-18 21:10:39 +08:00
wiki Add repo_id for attachment (#16958) 2021-09-08 17:19:30 +02:00