Track changes of another public repository.
- check multiple paths of a repo;
- create a summary of the changes using git compare (
- create a detailed list of diffs;
- ignore some changes to a specific file, saving hashes locally (
It can be useful keep track of the changes of a master repo from a forked project, eventually preparing a check in the CI.
IMPORTANT: the tool will add the other repository as remote source if it's not already present, for this reason it will need write permission. Otherwise you can manually add the remote source (the parameters must match the ones in the config:
- Add to your Gemfile:
gem 'repo-compare', require: false(and execute
- Create a config file in the root of your project (
--- source_name: REPO_NAME source_branch: master source_base_path: OPTIONAL_INTERNAL_PATH source_repo: https://github.com/ACCOUNT_NAME/REPO_NAME.git paths: - PATH1 - PATH2 - PATH3 - ...
- Execute the binary:
bundle exec repo-compare
Alternative option, install it at system level:
gem install repo-compare
Please take a look at the example1 branch for a installation and usage example.
The tool accepts some command line option:
--help: show this help
--summary: generate an XML summary of the files changed (useful for CI)
--update: update the config file setting the current hashes to ignore
Do you like it? Star it!
If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
Or consider offering me a coffee, it's a small thing but it is greatly appreciated: about me.
- Mattia Roccoberton: author
The gem is available as open source under the terms of the MIT License.