浏览代码

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

Fabian Peter Hammerle 1 年之前
父节点
当前提交
cb1761231d
共有 1 个文件被更改,包括 3 次插入0 次删除
  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