deborah: the Library of Congress cataloging numbers for children's literature, technology, and library science (Default)
deborah ([personal profile] deborah) wrote2014-05-14 11:22 am
Entry tags:

fun github trick I just figured out

(There's some non-screenreader friendly text in here, because the nature of the documentation I'm pasting in includes very long alphanumeric hashes. When you get to them just skip over them.)

Sometimes, because you are not looking at two different branches or a pull request or something such as that, you don't have access to the "compare" options from the github UI. However, you can build the URL manually. The documentation gives it as

http://github.com/USER/REPO/compare/[START...]END


Where USER and REPO are obvious, and START and END are branch names, tag names, or commit SHA1s specifying the range of history to compare. If is omitted, the repository's default branch is assumed.


So https://github.com/dreamwidth/dw-free/compare/08d335399862f0557311caa4ccd530b17c1a18b3...HEAD

Can get me to a diff view of everything from the commit with SHA1 08d335399862f0557311caa4ccd530b17c1a18b3 as its label (this is the long string in the URL of any commit) to the HEAD revision, which is to say, the current revision.

Fun times!

Post a comment in response:

(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org