title: Apply patches created with git log -p
body: <p>I have a file of patches (all of which apply to a single file) generated with</p>
  
  <pre><code>git log -p file-of-interest.txt &gt;patches.txt
  </code></pre>
  
  <p>Now I want to apply these patches in another repo, but when I try</p>
  
  <pre><code>git am patches.txt
  </code></pre>
  
  <p>I get the error message "Patch format detection failed."</p>
  
  <p>(<code>git apply</code> does not work either). Which is the correct way to apply these patches?</p>
  
  <p>Edit: What I want to do is to extract all changes to a single file between two commits into a set of patches, and then apply those changes in another repo. <code>git log -p from..to -- the-file</code> will generate the diff. If it is not possible to apply the patch from <code>git log</code>, is it possible to make <code>format-patch</code> (or another command) generate the patches for only a single file?</p>