title: How to git cherry-pick from sibling directories?
body: <p>I would like to use git cherry-pick to apply a commit from one file to another without rename detection (to many similar files lead to wrong detections).</p>
  
  <blockquote>
    <p>(master) directory1/file</p>
    
    <p>(master) directory2/file</p>
  </blockquote>
  
  <p>But I don't know how to tell cherry-pick the corresponding directory.</p>
  
  <p>I had another case where it worked fine with <code>git-1.7.5.rc1</code> which now supports merge strategies aka <code>-Xsubtree=.</code></p>
  
  <blockquote>
    <p>(master) directory1/file</p>
    
    <p>(branch) file</p>
  </blockquote>
  
  <p>I called</p>
  
  <pre><code>git cherry-pick --no-commit -Xsubtree=directory1 branch~95
  </code></pre>
  
  <p>and it worked fine, taking the changes from (branch~95) file to (master) directory1/file without rename detection.</p>
  
  <p>For the first case I tried calling <code>git cherry-pick</code> with -<code>Xsubtree=../directory1</code> but that did not work. I guess I would have to tell git cherry-pick somehow to leave the directory2 and then go to directory1 to apply the patches.</p>
  
  <p>Does anyone have a solution for this problem ?</p>