The reason why I'm doing this funky loop is because current implementation of parseGitDiff is design to handle multiple git diff text.  

So do you want me to repurpose this function to assume that `text` contains the diff information of one file or multiple files as it is?