From 662fb5d35ef80116ce633f0cafe0560bbc067a7b Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sat, 12 Aug 2023 11:38:18 +0200 Subject: git: add hunk header regexes for Clean and WebAssembly --- git/.gitconfig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'git/.gitconfig') diff --git a/git/.gitconfig b/git/.gitconfig index c69c5fc..a368099 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -14,6 +14,7 @@ branch = auto ui = true [core] + attributesfile = ~/.gitattributes excludesfile = ~/.gitignore editor = nvim whitespace = blank-at-eol,blank-at-eof,space-before-tab,tab-indent @@ -42,3 +43,8 @@ ff = only [init] defaultBranch = main + +[diff "clean"] + xfuncname = "^((\\S.*)?::.*)$" +[diff "wat"] + xfuncname = "^\\s*(\\((func|module).*)$" -- cgit v1.2.3