URL for commit as a patch
Reported by Pedro Melo | May 3rd, 2008 @ 07:22 AM
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 @ 10: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
-
defunkt May 4th, 2008 @ 11:22 AM
You can add '.diff' to any commit url to get a plaintext version.
-
Pedro Melo May 5th, 2008 @ 04:51 AM
Awesome :). I didn't know that, is that documented somewhere?
Thanks!
-
Dr Nic May 12th, 2008 @ 12:34 PM
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.
-
Alex Coles May 15th, 2008 @ 04:58 PM
+1 for some UI hints
-
defunkt May 24th, 2008 @ 01:07 AM
- → 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 »
