code: def display_available_branches(self):
          
  
          if not self.repo.remotes:
              remote_branches = False
          else:
              remote_branches = True
          branches = self.get_branches(local=True, remote_branches=remote_branches)
  
          if not branches:
              click.echo(crayons.red('No branches available'))
              return
  
          branch_col = len(max([b.name for b in branches], key=len)) + 1
  
          for branch in branches:
  
              try:
                  branch_is_selected = (branch.name == self.get_current_branch_name())
              except TypeError:
                  branch_is_selected = False
  
              marker = '*' if branch_is_selected else ' '
              color = colored.green if branch_is_selected else colored.yellow
              pub = '(published)' if branch.is_published else '(unpublished)'
  
              click.echo(columns(
                  [colored.red(marker), 2],
                  [color(branch.name, bold=True), branch_col],
                  [black(pub), 14]
              ))
docs: Displays available branches.