gitea/services/gitdiff
zeripath a384109244
Prevent panic on diff generation () ()
Backport 

The lastLeftIdx should be reset at the same time as creating a new section otherwise
it is possible for a second addition to end up attempting to read a nil entry.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
..
testdata/academic-module Fix panic when diff ()
csv.go Add Tabular Diff for CSV files ()
csv_test.go Fixed assert statements. ()
gitdiff.go Prevent panic on diff generation () ()
gitdiff_test.go Repare and Improve GetDiffRangeWithWhitespaceBehavior () ()
main_test.go Move git diff codes from models to services/gitdiff ()