Browse Source

add filter "ipynb" removing non-persistent `id` field from jupyter notebooks' cells

Fabian Peter Hammerle 1 year ago
parent
commit
c81eba3566
1 changed files with 3 additions and 0 deletions
  1. 3 0
      gitconfig

+ 3 - 0
gitconfig

@@ -45,6 +45,9 @@
 [diff "zcat"]
 	textconv = zcat
 
+[filter "ipynb"]
+	clean = jq --indent 1 'del(.cells[].id)'
+
 [filter "lfs"]
 	clean = git-lfs clean -- %f
 	smudge = git-lfs smudge -- %f