code: def get_current_branch(self):
          
          return next((self._sanitize(branch)
                       for branch in self._git.branch(color="never").splitlines()
                       if branch.startswith('*')),
                      None)
docs: Returns the currently active branch