Browse Source

add diff.openssl-x509-text.textconv for files containing x509 certs

Fabian Peter Hammerle 1 year ago
parent
commit
cb1761231d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      gitconfig

+ 3 - 0
gitconfig

@@ -36,6 +36,9 @@
 [diff "hexdump"]
 	textconv = od -t x1z --
 
+[diff "openssl-x509-text"]
+	textconv = "sh -c 'while openssl x509 -noout -text; do echo; done' <\"$1\" 2>&1"
+
 [diff "pgpdump"]
 	textconv = pgpdump