소스 검색

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