<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kanonji</author_name>
  <author_url>https://blog.hatena.ne.jp/kanonji/</author_url>
  <blog_title>kanonji’s diary</blog_title>
  <blog_url>https://kanonji.hatenadiary.com/</blog_url>
  <categories>
    <anon>git</anon>
  </categories>
  <description>まとめ $ git diff --no-prefix HEAD~ &gt; thisis.patch $ patch --dry-run -p0 &lt; thisis.patch $ patch -p0 &lt; thisis.patch git diffに--no-prefixをつける事で、普通のpatchで当てられるパッチファイルを出力できます。この例ではHEADの1個前*1からHEAD*2までのパッチです。 普通のpatchコマンドのほうの知識があまり無くて-p0がいまいちよく分からないんですが、git diff --no-prefixで作成したパッチファイルを当てるには必要みたいです。--dry-ru…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkanonji.hatenadiary.com%2Fentry%2F20110222%2F1298341934&quot; title=&quot;普通のpatchコマンドで取り込めるdiffファイルをgitで作成する - kanonji’s diary&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>2011-02-22 11:32:14</published>
  <title>普通のpatchコマンドで取り込めるdiffファイルをgitで作成する</title>
  <type>rich</type>
  <url>https://kanonji.hatenadiary.com/entry/20110222/1298341934</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
