The gitParser module is only responsible for parsing output from git, so this method shouldn't be here. Potentially it's something you could have in the git-api.js file as a last step before sending it to the ui.