summaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
authortypeless <typeless@users.noreply.github.com>2016-12-29 22:59:52 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2016-12-29 22:59:52 +0800
commit937b4b5aa14220432e494f66fd21813e66b69f8c (patch)
treeb11ac52af17a7ccf081a42dd86357f65a4df9b17 /routers/repo
parentb9928588834a9aad1771ba79f1d6638cdc29904a (diff)
downloadgitea-937b4b5aa14220432e494f66fd21813e66b69f8c.tar.gz
gitea-937b4b5aa14220432e494f66fd21813e66b69f8c.zip
Speed up conflict checking in pull request creation (#276)
* Speed up conflict checking in pull request creation In order to check conflicts of a PR, we set up a working tree by cloning the base branch, which is quite time-consuming when the repository is huge. Instead, this PR uses `git read-tree` and `git apply --check --cached` to check conflicts. For #258 * Use $GIT_INDEX_FILE instead of --index-output to avoid lockfile problem The lockfile gets renamed to the final destination after the operation finishes. But it must be located in the same filesystem, which prevents us from using /tmp. * Temporary file names should not prefixed with '-'
Diffstat (limited to 'routers/repo')
0 files changed, 0 insertions, 0 deletions