Use scala to parse and manipulate output from Git