فهرست منبع

add filter "truncate-mac-address-to-24-bits"

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fabian Peter Hammerle 1 ماه پیش
والد
کامیت
ae9d23432c
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      gitconfig

+ 5 - 0
gitconfig

@@ -42,6 +42,11 @@
 [diff "hexdump"]
 [diff "hexdump"]
 	textconv = od -t x1z --
 	textconv = od -t x1z --
 
 
+[filter "truncate-mac-address-to-24-bits"]
+	clean = sed -E 's/\\b([[:xdigit:]]{2}(:[[:xdigit:]]{2}){2})(:[[:xdigit:]]{2}){3}\\b/\\1:…/g'
+	smudge = cat
+	required = true
+
 [diff "yq"]
 [diff "yq"]
 	textconv = yq --yaml-output --indentless-lists . --
 	textconv = yq --yaml-output --indentless-lists . --