From 3280a62cac2b049355b395633ad3c1b679366f5d Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Sun, 18 Sep 2022 21:52:51 +0200 Subject: [PATCH] added capability of handling FreeCAD files with git diff --- .gitmodules | 3 +++ git/.gitattributes | 2 ++ git/.gitconfig | 7 +++++++ git/zippey | 1 + 4 files changed, 13 insertions(+) create mode 100644 git/.gitattributes create mode 160000 git/zippey diff --git a/.gitmodules b/.gitmodules index 1dea2a6..2105275 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "zsh/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"] path = zsh/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting url = https://github.com/zsh-users/zsh-syntax-highlighting +[submodule "git/zippey"] + path = git/zippey + url = https://bitbucket.org/sippey/zippey.git diff --git a/git/.gitattributes b/git/.gitattributes new file mode 100644 index 0000000..a7bfc7d --- /dev/null +++ b/git/.gitattributes @@ -0,0 +1,2 @@ +*.FCStd filter=zippey +*.FCStd diff=zip \ No newline at end of file diff --git a/git/.gitconfig b/git/.gitconfig index f90e4d8..5281f12 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -5,3 +5,10 @@ helper = store [http] sslVerify = true +[diff "zip"] + textconv = unzip -c -a +[core] + attributesfile = ~/.gitattributes +[filter "zippey"] + smudge = ~/zippey/zippey.py d + clean = ~/zippey/zippey.py e \ No newline at end of file diff --git a/git/zippey b/git/zippey new file mode 160000 index 0000000..f037ce9 --- /dev/null +++ b/git/zippey @@ -0,0 +1 @@ +Subproject commit f037ce9e9b968fa053f95cd2804a248021ffcb41