From c5549b442be6278ffba2c0628274b8159b70f3c8 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Mon, 28 Mar 2022 21:47:07 +0800 Subject: [PATCH] templates: use `OldIndex` for delete files in diff (#6878) --- templates/repo/diff/box.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index ef1a00760..7d40ab1ec 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -27,7 +27,7 @@   - {{.Name}} + {{.Name}} {{end}} @@ -50,7 +50,7 @@ {{else}} -
+

{{if $file.IsBinary}} @@ -106,7 +106,7 @@
{{$section.ComputedInlineDiffFor $line}}
{{else}} - +
{{if $line.LeftLine}}{{$section.ComputedInlineDiffFor $line}}{{end}}