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.
Requires git
and svn
(optional) installed on your OS.
- Create a virtual environment:
python3 -m venv venv
- Install the required dependencies:
python install -r requirements.txt
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
- 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.
Examples uses:
repo1 = https://github.com/code-423n4/2024-07-reserve