From 263a1509dbd79b1df3abe1bd42e2cd5d45448dea Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Mon, 19 Dec 2022 18:07:13 +0530 Subject: diff: show diff type --- templates/commit.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'templates/commit.html') diff --git a/templates/commit.html b/templates/commit.html index 65803b7..c37f850 100644 --- a/templates/commit.html +++ b/templates/commit.html @@ -46,8 +46,17 @@ {{ $repo := .name }} {{ $this := .commit.This }} {{ range .diff }} -
+
+ {{ if .IsNew }} + A + {{ end }} + {{ if .IsDelete }} + D + {{ end }} + {{ if not (or .IsNew .IsDelete) }} + M + {{ end }} {{ if .Name.Old }} {{ .Name.Old }} {{ if .Name.New }} -- cgit