{"id":97,"date":"2007-03-08T19:01:05","date_gmt":"2007-03-08T18:01:05","guid":{"rendered":"http:\/\/www.gnulinux.dk\/arj\/2007\/03\/08\/creating-nice-and-clean-patches\/"},"modified":"2007-12-03T20:44:48","modified_gmt":"2007-12-03T19:44:48","slug":"creating-nice-and-clean-patches","status":"publish","type":"post","link":"https:\/\/people.iola.dk\/arj\/2007\/03\/08\/creating-nice-and-clean-patches\/","title":{"rendered":"Creating nice and clean patches"},"content":{"rendered":"<p>I was creating some patches for <a href=\"http:\/\/www.gnome.org\/projects\/tracker\/\">tracker<\/a> today from a rather large amount of local changes which was nicely filtered together. Some source files had several independent changes that I wanted to extract and submit as a single patches instead of one big megapatch. So I looked around and found out that the <a href=\"http:\/\/www.openoffice.org\/\">OO guys<\/a> have created <a href=\"http:\/\/people.iola.dk\/arj\/extract-hunks\">a script<\/a> to do exactly that. It takes as input a regular expression (the script is created in perl so  one gets the nice regular expressions from perl) and a diff and spits out a clean diff + the rest of the changes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was creating some patches for tracker today from a rather large amount of local changes which was nicely filtered together. Some source files had several independent changes that I wanted to extract and submit as a single patches instead of one big megapatch. So I looked around and found out that the OO guys [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,15],"tags":[],"class_list":["post-97","post","type-post","status-publish","format-standard","hentry","category-free-software-hacking","category-iola"],"_links":{"self":[{"href":"https:\/\/people.iola.dk\/arj\/wp-json\/wp\/v2\/posts\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/people.iola.dk\/arj\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/people.iola.dk\/arj\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/people.iola.dk\/arj\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/people.iola.dk\/arj\/wp-json\/wp\/v2\/comments?post=97"}],"version-history":[{"count":0,"href":"https:\/\/people.iola.dk\/arj\/wp-json\/wp\/v2\/posts\/97\/revisions"}],"wp:attachment":[{"href":"https:\/\/people.iola.dk\/arj\/wp-json\/wp\/v2\/media?parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/people.iola.dk\/arj\/wp-json\/wp\/v2\/categories?post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/people.iola.dk\/arj\/wp-json\/wp\/v2\/tags?post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}