From 775b01c482ed0a9d10021de3db1fad4493642bee Mon Sep 17 00:00:00 2001 From: Attila Body Date: Tue, 17 Sep 2024 14:44:23 +0200 Subject: [PATCH] Rename rezip to .rezip --- .rezip/.gitattributes | 2 ++ {rezip => .rezip}/Readme.md | 1 - .rezip/config | 3 +++ {rezip => .rezip}/rezip.sh | 1 + rezip/config | 3 --- 5 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 .rezip/.gitattributes rename {rezip => .rezip}/Readme.md (92%) create mode 100644 .rezip/config rename {rezip => .rezip}/rezip.sh (98%) delete mode 100644 rezip/config diff --git a/.rezip/.gitattributes b/.rezip/.gitattributes new file mode 100644 index 0000000..9f03c29 --- /dev/null +++ b/.rezip/.gitattributes @@ -0,0 +1,2 @@ +*.FCStd filter=rezip + diff --git a/rezip/Readme.md b/.rezip/Readme.md similarity index 92% rename from rezip/Readme.md rename to .rezip/Readme.md index 7c002a0..1686b63 100644 --- a/rezip/Readme.md +++ b/.rezip/Readme.md @@ -7,7 +7,6 @@ The supplied rezip.zh script unzips a zip archive into the temp folder and rezip This repository serves as an example for setting up a git repo to recompress the .FCStd files during commit with 0 compression level, gicing a chance to go git to store the changes more efficiently. ## Usage -- Copy the __*rezip.sh*__ script to any folder which is included in the search path. - Make sure that zip and unzip commands are available on your system. - Append the content of the file __*config*__ to your repository's __*.git/config*__ file. - Copy __*.gitattributes*__ to the root of your repository. \ No newline at end of file diff --git a/.rezip/config b/.rezip/config new file mode 100644 index 0000000..d611794 --- /dev/null +++ b/.rezip/config @@ -0,0 +1,3 @@ +[filter "rezip"] + clean = ./.rezip/rezip.sh -0 + smudge = ./.rezip/rezip.sh -9 diff --git a/rezip/rezip.sh b/.rezip/rezip.sh similarity index 98% rename from rezip/rezip.sh rename to .rezip/rezip.sh index 2140635..c7dc65d 100755 --- a/rezip/rezip.sh +++ b/.rezip/rezip.sh @@ -1,4 +1,5 @@ #!/bin/sh +#set -x #usage rezip.sh [-#] [filename] unset compression diff --git a/rezip/config b/rezip/config deleted file mode 100644 index 019f89c..0000000 --- a/rezip/config +++ /dev/null @@ -1,3 +0,0 @@ -[filter "rezip"] - clean = rezip.sh -0 - smudge = rezip.sh -9