Skip to content

generates an html diff like winmerge->generate patch/diff for two .zip/folders that are commit x and commit y

Notifications You must be signed in to change notification settings

hakoomen/htmldiffgenerator

 
 

Repository files navigation

htmldiffgenerator

generates an html diff like winmerge->generate patch/diff for two .zip/foldera that are commit x and commit y

how to use:

python diff_generator.py --c1 "path_to_file1.zip" --c2 "path_to_file2.zip"

c1 is considered the old commit and c2 is considered the new commit c2 commit tree must include every commit that c1 has.

how to install

  1. download the source code
  2. install the requirements.txt
  3. run diff_generator -h for available commands
which will generate the output to '[this-project-root]/output'.
  • use the --git flag if you are downloading zip files from github not azure (I default to azure). This flag is used to tell this program to move every thing from the root of the extracted folder one directory up, since github also inclues the commit hash in the extracted folder which marks everything as different.

  • --output arg might result into FileNotFound exceptions and that's because of the antivirus program. If that's the case just don't use this arg or allow this program in the ransomware protection exceptions.
  • I know that this code is NOT well structured. It is written in a very short time just to get my job done faster.

please consider to leave a star if you found this util helpful >_<

About

generates an html diff like winmerge->generate patch/diff for two .zip/folders that are commit x and commit y

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%