The script creates a git-repository from different versions of a source code and cleans an each commit for useless files (images, test-files, etc..).
$ python3 -m venv .venv
$ source .venv/bin/activate
(.venv) $ python -m pip install -r requirements.txt
Put the paths of sources to source.list
and run differ:
python main.py -i source.list -o out -r all
or for get stats about file extensions:
python main.py -i out -o stats.txt -s
In rules directory you can add your rules and usage that later:
python main.py -i source.list -o out -r mycustomrules
Clean each commit in an exist Git-repository.