From a6aefa4127daf99cfbca54c2ac12fa10cb6ef6a9 Mon Sep 17 00:00:00 2001
From: Akshay
Date: Sat, 1 Mar 2025 18:15:29 +0000
Subject: [PATCH] add IsCopy and IsRename to git diff
---
appview/pages/templates/repo/commit.html | 32 +++++++++++++++---------
knotserver/git/diff.go | 2 ++
types/diff.go | 2 ++
3 files changed, 24 insertions(+), 12 deletions(-)
diff --git a/appview/pages/templates/repo/commit.html b/appview/pages/templates/repo/commit.html
index 1865ac9f..f96edde0 100644
--- a/appview/pages/templates/repo/commit.html
+++ b/appview/pages/templates/repo/commit.html
@@ -24,7 +24,7 @@
{{ timeFmt $commit.Author.When }}
- {{ $stat.FilesChanged }} files (+{{ $stat.Insertions }}, -{{ $stat.Deletions }})
+ {{ $stat.FilesChanged }} files (+{{ $stat.Insertions }}, -{{ $stat.Deletions }})
@@ -73,27 +73,35 @@