{"id":320,"date":"2010-02-28T12:19:39","date_gmt":"2010-02-28T20:19:39","guid":{"rendered":"http:\/\/www.outflux.net\/blog\/?p=320"},"modified":"2010-02-28T12:19:39","modified_gmt":"2010-02-28T20:19:39","slug":"egosurfing-with-git","status":"publish","type":"post","link":"https:\/\/outflux.net\/blog\/archives\/2010\/02\/28\/egosurfing-with-git\/","title":{"rendered":"egosurfing with git"},"content":{"rendered":"<p>I&#8217;m never sure when my commits to Linux actually make it into an official release.  Luckily, since releases are tagged, I can use &#8220;<code>git tag --contains COMMIT<\/code>&#8221; to find them.  So, in a stunning display of inefficiency, here&#8217;s what I use to find my commits:<\/p>\n<pre class=\"brush:bash\">\r\ngit log --author='Kees Cook' --pretty=oneline | \\\r\nwhile read commit name; do \\\r\n    echo $(git tag --contains $commit | head -n1): \"$name\"; \\\r\ndone\r\n<\/pre>\n<p>Which lets me know where my code is with respect to releases:<\/p>\n<pre>\r\nv2.6.33: x86, mm: Report state of NX protections during boot\r\nv2.6.33: sysctl: require CAP_SYS_RAWIO to set mmap_min_addr\r\nv2.6.32: proc: fix reported unit for RLIMIT_CPU\r\nv2.6.31: modules: sysctl to block module loading\r\n...\r\n<\/pre>\n<p style='text-align:left'>&copy; 2010, <a href=\"https:\/\/outflux.net\/blog\/\">Kees Cook<\/a>. This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\">Creative Commons Attribution-ShareAlike 4.0 License<\/a>.<br \/><a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\"><img decoding=\"async\" alt=\"CC BY-SA 4.0\" style=\"border-width:0\" src=\"https:\/\/i.creativecommons.org\/l\/by-sa\/4.0\/88x31.png\" \/><\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m never sure when my commits to Linux actually make it into an official release. Luckily, since releases are tagged, I can use &#8220;git tag &#8211;contains COMMIT&#8221; to find them. So, in a stunning display of inefficiency, here&#8217;s what I use to find my commits: git log &#8211;author=&#8217;Kees Cook&#8217; &#8211;pretty=oneline | \\ while read commit [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,18,14,19],"tags":[],"_links":{"self":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/320"}],"collection":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/comments?post=320"}],"version-history":[{"count":2,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/320\/revisions"}],"predecessor-version":[{"id":322,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/320\/revisions\/322"}],"wp:attachment":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/media?parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/categories?post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/tags?post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}