title: Making git ignore specific content changes
body: <p>This is most useful for directories containing latex compilation files. Sometimes I may re-compile a file with an updated image (so tex is identical), and the resulting log is identical to the previous with a date change.</p>
  
  <p>I would prefer if GIT not show these in the status at all (behavior can be anything instead - auto checkout the original for example every <code>git status</code>).</p>
  
  <p>Specifically the current diff is (the difference is the date at the end):</p>
  
  <pre><code>-This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2017.5.16)  8 OCT 2017 17:01
  +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2017.5.16)  22 NOV 2017 11:26
  </code></pre>
  
  <p>Note <a href="https://stackoverflow.com/questions/35139541/make-git-ignore-modification-date-changes-if-the-content-of-the-file-stays-the-s#37221298">Make git ignore modification date changes if the content of the file stays the same</a> (or similar) is irrelevant to this question, I'm not talking about modification time which GIT ignores.</p>
  
  <p><strong>Is it possible through some git scripting to prevent these types of changes from appearing in git status?</strong></p>
  
  <p>The answer should probably be more general than my specific example (any content that needs ignoring), if possible of course. Answers could hide it somehow (not ignore permanently in case of a real change) or checkout previous version on status or anything else achieving this result.</p>