From what I can tell this method only formats a status call into a diff/line response, which is only needed because the ui expects something in that format? You should already have access to things like file.isNew etc. in the ui since it calls /api/status on it's own