org-lduran2 / git-unzip-all

Script to uncompress all files matching the desired patterns after pushing to a git repo.
MIT License
0 stars 1 forks source link

Skip files in `.gitignore` and alternatives #14

Open lduran2 opened 2 years ago

lduran2 commented 2 years ago

Skip files that are in .gitignore.

Currently, you can add the unzipped directories to .gitignore. However, this is about saving time on commit. There are currently 3 alternatives

  1. enhance .gitignore of unzipped directories by using these to filter unzipping
  2. use the zip files as filters for .gitignore
  3. check which files are currently added.

Option 3 contradicts current behavior which unstages a zipped file once it's unzipped. So this may require an additionally hook to add the file back presumably after commit. This may be closer to expected behavior.

lduran2 commented 2 years ago

Option 3 is the best choice. Currently zipped archives will leak onto new branches.