title: Find where code was deleted in a Git repository
body: <p>How do I find code that was deleted?</p>
  <p>I ended up finding where it was created with this:</p>
  <pre><code>$ git log --pretty=oneline -S'some code'
  </code></pre>
  <p>And that's good enough, but I was also curious to find where it got deleted, and so far, no dice.</p>
  <p>First, I tried <code>git diff HEAD..HEAD^ | grep 'some code'</code>, expanding the range each time, until I found the lines where it was removed. Nice, so suppose I found it on range <code>HEAD^^..HEAD^^^</code>, then I do <code>git show HEAD^^^</code> and <code>git show HEAD^^</code> with <code>grep</code>, but the code is nowhere to be found!</p>
  <p>Then I read up a bit on <code>git bisect</code>, and sure enough, it gives me a single revision where the culprit is supposed to be... Again, <code>git show rev | grep 'some code'</code> comes up empty...</p>
  <p>What am I doing wrong?</p>