Did you ever want to easily compare two files to see which lines got added/deleted in a different version - similar to a
git diff
- but only highlight the lines that are actually different?
→ This is your solution!
A short script that goes through your files and creates a .patch file doing exactly that.
At least Python 3.10
- First, change the commented file variables at the top of the code for actual use.
python3 compare_files.py <file1> <file2>
Changes will be stored in diff.patch.
Created .patch file is not useful for actual git diff usage.