models: avoid parsing the output of 'git status'