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.
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
3 years ago
..
agit Return correct error response for agit force-push (#16989) 3 years ago
archiver Add bundle download for repository (#14538) 3 years ago
attachment Add repo_id for attachment (#16958) 3 years ago
auth Allow BASIC authentication access to /:owner/:repo/releases/download/* (#16916) 3 years ago
comments Enhance Ghost comment mitigation Settings (#14392) 3 years ago
externalaccount Allow externalID to be UUID (#8551) 5 years ago
forms Added introspection endpoint. (#16752) 3 years ago
gitdiff Use git attributes to determine generated and vendored status for language stats and diffs (#16773) 3 years ago
issue Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
lfs Test if LFS object is accessible (#16865) 3 years ago
mailer Send registration email on user autoregistration (#16523) 3 years ago
mirror Make mirror feature more configurable (#16957) 3 years ago
pull Add option to update pull request by `rebase` (#16125) 3 years ago
release Add repo_id for attachment (#16958) 3 years ago
repository Refactor the fork service slightly to take ForkRepoOptions (#16744) 3 years ago
webhook Add proxy settings and support for migration and webhook (#16704) 3 years ago
wiki Add repo_id for attachment (#16958) 3 years ago