This is a Python that's meant to generate diffs for Lovely. It does this by generating Lovely patches based on Git diffs
You'll need to install whatthepatch
using pip
or a similar tool (I personally have been using uv
)
python3 differ.py PATH_TO_GIT_DIRECTORY [COMMIT_HASH]
, where passing a commit hash is optional. This will generate a lovely.toml
file. You can pass --output PATH_TO_LOVELY_FILE
to generate the lovely.toml
file at a different path. You can also pass --patch PATH_TO_PATH_FILE
to provide your own patch file.
Currently this only generates patches for existing files with changes, and does not look at new files