Using PHP in command line to read staged files in git
<p>I don't really know where to begin with this as I am not very good at git, and am new to running php scripts via command line.</p>

<p>What I would like to be able to do is make a call in my php script (ran via command line on unix) that will figure out what files are staged to be commit, and return them preferably in an array.</p>

<ul>
<li>This script will be ran from home ~/</li>
<li>The repos are in ~/repos/</li>
</ul>

<p>I wouldn't mind passing in the repo name to a function that returns this array.</p>
