<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shokai</author_name>
  <author_url>https://blog.hatena.ne.jp/shokai/</author_url>
  <blog_title>橋本詳解</blog_title>
  <blog_url>https://shokai.hatenadiary.org/</blog_url>
  <categories>
    <anon>OneLiner</anon>
    <anon>Ruby</anon>
    <anon>git</anon>
  </categories>
  <description>commitのdiffをgrepしたいのだが、gitだけで検索する方法がわからなかったのでとりあえず~/diffに全commitのdiffを書きだした mkdir ~/diff git log | grep '^commit' | ruby -lane 'puts $F[1].strip' | ruby -lane 'arr=ARGF.to_a.map{|i|i.strip}; for i in 0...(arr.size-1) do a,b=arr[i,i+1]; puts cmd=&quot;git diff #{a} #{b} &gt; ~/diff/#{a}&quot;; system cmd end' あとは…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshokai.hatenadiary.org%2Fentry%2F20120112%2F1326359242&quot; title=&quot;diffをファイルに書き出し - 橋本詳解&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-01-12 18:07:22</published>
  <title>diffをファイルに書き出し</title>
  <type>rich</type>
  <url>https://shokai.hatenadiary.org/entry/20120112/1326359242</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
