From a05244018ae02603c56a27f8f8b7006c0024f7ea Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Mon, 19 Dec 2022 11:36:50 +0530 Subject: git: check for binary files --- templates/commit.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'templates/commit.html') diff --git a/templates/commit.html b/templates/commit.html index 1b4a8d9..b1b3cbc 100644 --- a/templates/commit.html +++ b/templates/commit.html @@ -55,7 +55,9 @@ {{ .Name.New }} {{- end -}} - + {{ if .IsBinary }} +

Not showing binary file.

+ {{ else }}
             {{- range .TextFragments -}}
             

{{- .Header -}}

@@ -71,6 +73,7 @@ {{- end -}} {{- end -}} {{- end -}} + {{- end -}}
{{ end }} -- cgit