Tag: diff

  • Coloured Diff With Python

    TL; DR: my simple Python code to output a result of text comparison in git-diff style Here’s the code snippet in Python. 🙂

  • Use Python to Check Difference between Directories Recursively

    I needed to track differences between software release packages, so that if anything changed dramatically, eg. some file missing or much smaller than expected, I can then get a notification to review the new potentially flawed package. I found that filecmp.dircmp class in Python is spot on for this job. Here’s my snippet to compare…