Rename rezip to .rezip

This commit is contained in:
Attila Body 2024-09-17 14:44:23 +02:00
parent 048858c23b
commit 775b01c482
No known key found for this signature in database
GPG key ID: 3D2FC6085E166F70
5 changed files with 6 additions and 4 deletions

2
.rezip/.gitattributes vendored Normal file
View file

@ -0,0 +1,2 @@
*.FCStd filter=rezip

View file

@ -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.

3
.rezip/config Normal file
View file

@ -0,0 +1,3 @@
[filter "rezip"]
clean = ./.rezip/rezip.sh -0
smudge = ./.rezip/rezip.sh -9

View file

@ -1,4 +1,5 @@
#!/bin/sh
#set -x
#usage rezip.sh [-#] [filename]
unset compression

View file

@ -1,3 +0,0 @@
[filter "rezip"]
clean = rezip.sh -0
smudge = rezip.sh -9