summaryrefslogtreecommitdiffstats
path: root/routers/user/home.go
diff options
context:
space:
mode:
authorFilip Navara <filip.navara@gmail.com>2019-04-21 10:49:06 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2019-04-21 16:49:06 +0800
commitb83114f1407247415b184f77f8f2f6ecea8cb994 (patch)
tree668d67f6cf3ae187f70ded4d450883767f44bc8d /routers/user/home.go
parent04ff3dd51048e2733a6127c6b75f9bb45a7e8575 (diff)
downloadgitea-b83114f1407247415b184f77f8f2f6ecea8cb994.tar.gz
gitea-b83114f1407247415b184f77f8f2f6ecea8cb994.zip
Fix one performance/correctness regression in #6478 found on Rails repository. (#6686)
* Fix flaw in the commit history lookup that caused unnecessary traversal when the repository contains a lot of merge commits. Also return the merge commit as the changed one if the file or directory was changed as part of the merge, eg. through conflict resolution. Signed-off-by: Filip Navara <filip.navara@gmail.com> * Perform history simplification. If a file is present on multiple parents in a merge commit follow only the first parent.
Diffstat (limited to 'routers/user/home.go')
0 files changed, 0 insertions, 0 deletions