URL for commit as a patch
Reported by Pedro Melo | May 2nd, 2008 @ 10:22 PM
Hi,
sorry if this already exists but I could not find it.
It would be very nice to have a link in the commit page to the patch version of said commit.
This makes it easier to tell people who are still not using git to:
curl PATCH-URL | patch -p1
For bonus points, the diff URL should also be in a tag with the rel="alternate".
Thanks,
Comments and changes to this ticket
-
Scott Fleckenstein May 4th, 2008 @ 01:44 AM
That would be pretty bad-ass. Especially if you enabled us to pass in a revision range like you can with git diff
curl http://github.com/rails/rails.gi...^^^ | patch -p1
curl http://github.com/rails/rails.gi... | patch -p1
and so forth.
+1 yumminess
-
-
Pedro Melo May 4th, 2008 @ 07:51 PM
Awesome :). I didn't know that, is that documented somewhere?
Thanks!
-
Dr Nic May 12th, 2008 @ 03:34 AM
Perhaps ".patch" could return a formatted patch (with Author etc info at the top).
Some UI links/buttons to these easter egg urls would be useful too.
-
-
defunkt May 23rd, 2008 @ 04:07 PM
- → Assigned user changed from defunkt to Tom Preston-Werner
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
