aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git/.gitattributes3
-rw-r--r--git/.gitconfig6
-rw-r--r--git/.gitignore1
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