Generates a URL to GitHub's web-based commit comparison interface and opens it if session is interactive.
Arguments
- user
Name of the User Account
- repo
Name of the Repository
- start
Start commit, tag, date, or branch
- end
End commit, tag, date, or branch
Details
The gist of possible comparisons is given in the next table.
| Comparison Type | start | end | |:------------------|:-------------------:|:-----------------------------------------:| | Forks | `master` | `octo-org:master` | | Tags | `v2.2.0` | `octocat:v2.3.3` | | Branches | `master` | `octocat:an-example-comparison-for-docs` | | Time | `master@2weeks` | `master` | | Time | `master@MM-DD-YY` | `master` | | Commits | `c3a414e` | `faf7c6f` | | Commits | `96d29b7^^^^^` | `96d29b7` |