diff options
author | Camil Staps | 2023-08-12 11:38:18 +0200 |
---|---|---|
committer | Camil Staps | 2023-08-12 11:38:32 +0200 |
commit | 662fb5d35ef80116ce633f0cafe0560bbc067a7b (patch) | |
tree | d2c79536ab5cf0fef90ca129b679d07544767e16 | |
parent | Update vim spellfiles (diff) |
git: add hunk header regexes for Clean and WebAssembly
-rw-r--r-- | git/.gitattributes | 3 | ||||
-rw-r--r-- | git/.gitconfig | 6 | ||||
-rw-r--r-- | git/.gitignore | 1 |
3 files changed, 9 insertions, 1 deletions
diff --git a/git/.gitattributes b/git/.gitattributes new file mode 100644 index 0000000..714aa66 --- /dev/null +++ b/git/.gitattributes @@ -0,0 +1,3 @@ +*.dcl diff=clean +*.icl diff=clean +*.wat diff=wat 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).*)$" diff --git a/git/.gitignore b/git/.gitignore index 9747c11..132a56b 100644 --- a/git/.gitignore +++ b/git/.gitignore @@ -1,3 +1,2 @@ -.iclmargs .ctest-results.json .nitrile-tags |