manipulates 'git diff' output to different formats.