title: How does git track source code moved between files?
body: <p>Apparently, when you move a function from one source code file to another, the git revision log (for the new file) can show you where that code fragment was originally coming from (see for example the Viewing History section in <a href="http://nathanj.github.com/gitguide/tour.html" rel="noreferrer">this tutorial</a>).</p>
  
  <p>How does this work?</p>