Skip to content
Spit out a diff as a more readable HTML page!
Python HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
License.md
README.md
diff_humaniser.py
footer.html
head.html
header.html

README.md

Diff Humaniser

Spit out a diff as a more readable HTML page!

I made this because I wanted to generate a human readable diff for changes made to the Stellaris game folder so I could update my mods.

I'm not a python expert by any means, so I thought this would be a good exercise to get more used to it.

Requirements:

  • Python
  • Git

Usage

python diff_humaniser.py DEFAULT <from_version> <to_version> <path_to_git_repo> [repository_name] [from_revision] [to_revision]

or

python diff_humaniser.py PRE-DIFF <from_version> <to_version> <path_to_diff_file>

Make sure to edit header.html, head.html and footer.html but please leave some credit and link back to this repository.

[from_revision] [to_revision] will be replaced with HEAD~1 and HEAD respectively

Example:

python diff_humaniser.py DEFAULT 1.1.x 1.2.x "C:/Games/Steam/steamapps/common/Stellaris/" "STELLARIS"

The command above generated https://dosaki.net/stellarisdiff/1.1.x_to_1.2.x.html

You can’t perform that action at this time.