Skip to content

Compare any two remote GitHub repositories for differences.

License

Notifications You must be signed in to change notification settings

shortdoom/audit-compare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Audit-Compare

Audit-Compare allows you to compare any two remote GitHub repositories for differences. The results are presented in an output HTML file, with options to filter by extensions and directories. Additionally, basic search functionality across the data is provided.

Installation

Requires git and svn (optional) installed on your OS.

  1. Create a virtual environment:
    python3 -m venv venv
  2. Install the required dependencies:
    python install -r requirements.txt

Usage

Run the comparison script with the following command:

python compare.py <repo1> <repo2>

Alternatively, you can run the script and enter the repository URLs when prompted:

python compare.py

Optionally, you can use --deep flag to compare not only matching filepaths but filenames individually

python compare.py --deep

Output

  • Repositories are cloned into the /data directory.
  • A new directory for the comparison operation will be created: compare_<repo1>_to_<repo2>.
  • Open comparison_report.html in your browser to inspect the details.
  • Additionally, a repo_comparison_<date>.log file will be created with all of the diff information.

Screenshots

Examples uses:

repo1 = https://github.com/code-423n4/2024-07-reserve

repo2 = https://github.com/reserve-protocol/protocol

Compare Filtering and Main View

Compare Filtering and Main View

Compare Diffs Side-by-Side

Compare Diffs Side-by-Side

About

Compare any two remote GitHub repositories for differences.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages