title: Is it possible to check the 'git status' of all the files processed by grunt?
body: <p>Let's suppose I have a project with several files (e.g <code>.html</code>, <code>.js</code>, <code>.css</code>, <code>.cs</code> etc). The files are released with <code>grunt</code>, which creates a <code>build/</code> folder from my input <code>src/</code> files.</p>
  
  <p>During this process, it doesn't include all of my <code>src</code> files, and it also changes the names of some files (to <code>.min.js</code> and <code>.min.css</code> for example).
  The list of the input files are specified in the tasks with <code>src</code> parameter and the renaming is done with the <code>ext</code> parameter.
  This is cool, every information about the files to be included in the release are in the <code>grunt</code> file.</p>
  
  <p>But is it possible to check automatically that if input files are also added to git?</p>
  
  <p>It would be very frustrating making hundreds of releases for months and later figuring out that I forgot to add an important file to git right at the first release.
  This would mean that all the previous <code>snapshots</code> stored in <code>git</code> are incomplete.</p>
  
  <p>I know that some automated <code>Jenkins</code> tests could help, but these tests should probably contain another, independently created file list. It would be a good second check, but the situations would not be easier.</p>
  
  <p>Grunt knows everything about the source files which are needed for the release and can do many checks during the release.
  It would be nice if grunt could do a <code>git status</code> before running their tasks and it could apply a <code>source filter</code> before applying a task to check the presence of the files in git.</p>
  
  <p>Creating a grunt task, or executing a git command line would be also be a solution, but I'm afraid I would need to list all my <code>src</code> lists and <code>ext</code> parameters again for this solution.</p>
  
  <p>Note: For the development, I'm using Windows and Linux, too.</p>