Browse Source

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fabian Peter Hammerle 2 weeks ago
parent
commit
ae9d23432c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      gitconfig

+ 5 - 0
gitconfig

@@ -42,6 +42,11 @@
 [diff "hexdump"]
 	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"]
 	textconv = yq --yaml-output --indentless-lists . --