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.
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.
- This script will be ran from home ~/
- The repos are in ~/repos/
I wouldn’t mind passing in the repo name to a function that returns this array.
git statusexec