zeripath fb5f7791ef
Prevent off-by-one error on comments on newly appended lines (#18029)
* Prevent off-by-one error on comments on newly appended lines

There was a bug in CutDiffAroundLine whereby if a file without a terminal new line
has a patch which appends lines to it and a comment is placed on one of those lines
the comment diff will be a line out of place.

This fixes CutDiffAroundLine to simply ignore the missing terminal newline - however,
we should really improve this rendering to add a marker to say that there was a
previously missing terminal newline.

Fix #17875

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-20 02:15:49 +00:00
..
2021-10-24 22:12:43 +01:00
2021-12-02 15:28:08 +08:00
2021-10-13 14:20:11 -04:00
2021-10-08 15:08:22 +02:00
2021-12-02 15:28:08 +08:00
2021-12-02 15:28:08 +08:00
2021-10-17 20:47:12 +01:00
2020-12-22 21:44:25 +01:00
2021-07-20 15:16:20 +02:00

Git Module

This module is merged from https://github.com/go-gitea/git which is a Go module to access Git through shell commands. Now it's a part of gitea's main repository for easier pull request.