This is basically pushing the SCM status - gotten from calling the git library - into the UI. So, not setting it explicitly per se as much as updating the UI.