I'm not sure how useful it is to verbatim replicate the behaviour of 'git status'. As a Dulwich API user, I think you'd want a richer return value here rather than output to parse.