title: diff returning entire file for identical files
body: <p>I've got a website that has a git repo. I cloned the repo so that I could develop in one directory and then push to the repo, and then pull in the live/prod directory (would be interested in suggestions for a better way to do this if there is one, but that's outside the scope of this question).</p>
  
  <p>I did the following in the live directory to push all my latest changes:</p>
  
  <pre><code>git add .
  git commit -a // added a message
  git push
  </code></pre>
  
  <p>I then did the following in the dev directory:</p>
  
  <pre><code>git clone git@bitbucket.org:user/repo.git
  </code></pre>
  
  <p>I then opened two files, prod/root/test.php and dev/root/test.php, and they looked identical. However, when I did the following diff command, it outputted the entire file:</p>
  
  <pre><code>diff prod/root/test.php dev/root/test.php
  </code></pre>
  
  <p>I am so confused as to why diff would output the entire file if they're identical... I also tried googling this and can't find anyone else with this problem. Maybe it's a line endings issue or a character encoding issue where they look the same but they are actually different and git/bitbucket converts it when you push to their repo? That's the only thing I can think of... Either that or I'm missing something really obvious.</p>
  
  <p>Here's the output:</p>
  
  <pre><code>1,3c1,3
  &lt; &lt;?
  &lt; echo '&lt;p&gt;Hello world!&lt;/p&gt;';
  &lt; ?&gt;
  ---
  &gt; &lt;?
  &gt; echo '&lt;p&gt;Hello world!&lt;/p&gt;';
  &gt; ?&gt;
  </code></pre>