From 307aa0001fa751988c1d0c41a89cdb38c48438fb Mon Sep 17 00:00:00 2001 From: Bernhard Millauer Date: Sun, 13 Apr 2014 23:35:56 +0200 Subject: [PATCH 1/2] Added cross repo comparision --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 88fcf69..5ebbc43 100644 --- a/README.md +++ b/README.md @@ -235,6 +235,19 @@ https://github.com/rails/rails/compare/master@{2014-10-04}...master ``` which allows you to see the difference on the master branch up a set time ago or a specified date. +### Compare branches cross forked repositories + +To use GitHub to compare branches across forked repositories, change the URL to look like this: + +``` +https://github.com/user/repo/compare/{foreign-user}:{branch}...{own-branch} +``` + +eg.: +``` +https://github.com/rails/rails/compare/byroot:idempotent-counter-caches...master +``` + ## Line Highlighting in Repos Either adding `#L52` to the end of a code file URL or simply clicking the lin number will highlight that line number. From f0d3e503a84ee498d735277212f48ef326bfccd6 Mon Sep 17 00:00:00 2001 From: Bernhard Millauer Date: Mon, 14 Apr 2014 09:58:59 +0200 Subject: [PATCH 2/2] Fixed a typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5ebbc43..823c5c3 100644 --- a/README.md +++ b/README.md @@ -235,7 +235,7 @@ https://github.com/rails/rails/compare/master@{2014-10-04}...master ``` which allows you to see the difference on the master branch up a set time ago or a specified date. -### Compare branches cross forked repositories +### Compare branches across forked repositories To use GitHub to compare branches across forked repositories, change the URL to look like this: