title: Running git diff on added files via cherry picking
body: <p>I have groovy script that builds a report from git log and git diff .  The purpose of the report is to review any third party plugins in the pom files before the build can be published so it is very crucial for report to be 100% accurate. The script basically takes a commit and retrieves all modified files since that commit and for each file I run git diff to get the added and removed lines.  </p>
  
  <p>For some reason one of the pom files that was added by cherry picking shows nothing when I do git diff on it. </p>
  
  <p><strong>The command I use to get file names and their status is:</strong> </p>
  
  <pre><code>git init -q&amp;git remote add origin ssh://git@git.goldlnk.rootlnka.net/project/${gitRepos[i]}&amp;git fetch origin ${branch} -q&amp;git log ${lastRevs[i]}..origin/${branch} --name-status --pretty=format: --date-order --full-history -m --grep=Merge\\spull\\srequest.* --grep=Merge.*into.*/.* --grep=Automatic\\smerge\\sfrom.* --invert-grep -- ./*pom.xml
  </code></pre>
  
  <p><strong>then I run this command to get the diff:</strong></p>
  
  <pre><code>git checkout ${branch}&amp;git diff --unified=0 --color=never ${lastRevs[i]} ${fileName}
  </code></pre>