[buug] Github diffs

Ian Zimmerman itz at primate.net
Tue Sep 27 08:37:34 PDT 2016


On 2016-09-26 22:13, Michael Paoli wrote:

> > Is there a way to tease a plain text diff (aka patch) out of
> > github.com?

> Well, ... ugly and inefficient, ... but *might* suffice ...
> if we allow a bashism ... and, I'm presuming Github has some
> URLs that allow direct raw downloads of the various versions, so ...
> with bash or similar, something like:
> 
> $ diff [options] <(command_that_outputs_a_version)  
> <(command_that_outputs_another_version)

I sent my OP because I had a back of the mind feeling that there was
indeed a shortcut that I had forgotten.

The feeling was right.  You can just append ".diff" to the URL to get a
plain text diff.

Thanks for the suggestion, anyway :)

-- 
Please *no* private Cc: on mailing lists and newsgroups
Personal signed mail: please _encrypt_ and sign
Don't clear-text sign: http://cr.yp.to/smtp/8bitmime.html
Why does the arrow on Hillary signs point to the right?


More information about the buug mailing list