StatusWidget: add self._git.
StatusWidget: refactoring.
StatusWidget: refactoring.