Generate GitHub compare url like this.
Add this line to your application's Gemfile:
gem install gh_comparegh_compare -n [number]
# e.g. Generates a comparison URL from 3 commits ago to HEAD
gh_compare -n 3gh_compare -d [from-hash],[to-hash]
# e.g. Generate a comparison URL from [from-hash] to [to-hash]
gh_compare -d c794e7718ef18011b9d96f812f62f31608deeca8,45c38cac44e96ee2545f1e70dba80b23058309bfbundle install
bundle exec rspecThe gem is available as open source under the terms of the MIT License.
Everyone interacting in the GhCompare project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.