Made the git prompt function more easily understood