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/docs/content/doc/advanced
zeripath d6b96627c1
Add setting to disable the git apply step in test patch (#22130)
For a long time Gitea has tested PR patches using a git apply --check
method, and in fact prior to the introduction of a read-tree assisted
three-way merge in #18004, this was the only way of checking patches.

Since #18004, the git apply --check method has been a fallback method,
only used when the read-tree three-way merge method has detected a
conflict. The read-tree assisted three-way merge method is much faster
and less resource intensive method of detecting conflicts. #18004 kept
the git apply method around because it was thought possible that this
fallback might be able to rectify conflicts that the read-tree three-way
merge detected. I am not certain if this could ever be the case.

Given the uncertainty here and the now relative stability of the
read-tree method - this PR makes using this fallback optional and
disables it by default. The hope is that users will not notice any
significant difference in conflict detection and we will be able to
remove the git apply fallback in future, and/or improve the read-tree
three-way merge method to catch any conflicts that git apply method
might have been able to fix.

An additional benefit is that patch checking should be significantly
less resource intensive and much quicker.

(See
https://github.com/go-gitea/gitea/issues/22083\#issuecomment-1347961737)

Ref #22083

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
1 year ago
..
adding-legal-pages.en-us.md Fix various typos of software names (#18083) 2 years ago
clone-filter.en-us.md Add markdownlint (#20512) 2 years ago
cmd-embedded.en-us.md Fix various typos of software names (#18083) 2 years ago
config-cheat-sheet.en-us.md Add setting to disable the git apply step in test patch (#22130) 1 year ago
config-cheat-sheet.zh-cn.md Add option to enable CAPTCHA validation for login (#21638) 2 years ago
customizing-gitea.en-us.md Fix PlantUML example in document (#21142) 2 years ago
customizing-gitea.zh-cn.md Update documentation to reflect #15219 (#16442) 3 years ago
environment-variables.en-us.md Update docs and comments to remove macaron (#14491) 3 years ago
environment-variables.zh-cn.md Add markdownlint (#20512) 2 years ago
external-renderers.en-us.md Add KaTeX rendering to Markdown. (#20571) 2 years ago
logging-documentation.en-us.md Clarify logging documentation (#21665) 2 years ago
mail-templates.en-us.md Refactor docs (#21627) 2 years ago
protected-tags.en-us.md Add markdownlint (#20512) 2 years ago
repo-indexer.en-us.md Reformat docs (#13897) 4 years ago
repo-mirror.en-us.md Improve pull/ push mirror documentation (especially for GitHub) (#21801) 2 years ago
search-engines-indexation.en-us.md Add markdownlint (#20512) 2 years ago
signing.en-us.md Add hint to GNUPGHOME environment variable (#20134) 2 years ago