{"id":222,"date":"2011-06-27T13:18:37","date_gmt":"2011-06-27T17:18:37","guid":{"rendered":"http:\/\/blogs.tulsalabs.com\/?p=222"},"modified":"2025-11-12T02:24:50","modified_gmt":"2025-11-12T06:24:50","slug":"making-a-patch-set","status":"publish","type":"post","link":"http:\/\/blogs.tulsalabs.com\/?p=222","title":{"rendered":"Making a patch set"},"content":{"rendered":"<p>Get a clone and make a new branch:<\/p>\n<p>   290\t21:08\tgit clone git:\/\/linux-nfs.org\/~steved\/cthon04.git<br \/>\n   291\t21:08\tcd cthon04<br \/>\n   292\t21:08\tgit branch FreeBSD<br \/>\n   293\t21:08\tgit checkout FreeBSD<br \/>\n   294\t21:08\tgit branch<\/p>\n<p>Edit your files and commit the changes:<\/p>\n<p>   299\t21:09\tgit commit -a<\/p>\n<p>Make the patch set:<\/p>\n<p><code><br \/>\n   303\t21:15\tgit format-patch --cover-letter -s -n master..FreeBSD<br \/>\n<\/code><\/p>\n<p>Edit the cover letter to document your changes:<\/p>\n<p>   309\t21:20\tvi 0000-cover-letter.patch<\/p>\n<p>Send the changes:<\/p>\n<p><code><br \/>\n   311\t21:21\tgit send-email --smtp-encryption=tls --smtp-server=smtp.gmail.com --smtp-user=&lt;user&gt;@gmail.com --smtp-server-port=587 --to \"&lt;owner&gt;\" 000*<br \/>\n<\/code><\/p>\n<p>Note, while you might use a different email address inside the cover letter, it will still go out as from the user being referenced above. I.e., use the real smtp-server if you don&#8217;t want to expose your gmail account.<\/p>\n<p>Note, you might have to install git-mail to do it this way. You can mail the patch set in many different ways.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Get a clone and make a new branch: 290 21:08 git clone git:\/\/linux-nfs.org\/~steved\/cthon04.git 291 21:08 cd cthon04 292 21:08 git branch FreeBSD 293 21:08 git checkout&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-222","post","type-post","status-publish","format-standard","hentry","category-tricks"],"_links":{"self":[{"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/posts\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=222"}],"version-history":[{"count":5,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions"}],"predecessor-version":[{"id":360,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions\/360"}],"wp:attachment":[{"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}