Simplest wrapper for getting git commit and branch of the current tree in php