]> source.dussan.org Git - gitea.git/commit
Fix blame view missing lines (#22826) (#22929)
authorzeripath <art27@cantab.net>
Fri, 17 Feb 2023 02:19:24 +0000 (02:19 +0000)
committerGitHub <noreply@github.com>
Fri, 17 Feb 2023 02:19:24 +0000 (10:19 +0800)
commit9da4642c8c9feca2019c09fba14b0d32b64be47e
tree2b4c689ed5228e56ee8117aed2ed1fac0a1bbddd
parent1d191f9b5a262a9933c6024e051161dc90aa7f22
Fix blame view missing lines (#22826) (#22929)

Backport #22826

Creating a new buffered reader for every part of the blame can miss
lines, as it will read and buffer bytes that the next buffered reader
will not get.

---------

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Brecht Van Lommel <brecht@blender.org>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
modules/git/blame.go
modules/git/blame_test.go