code: def commit_branches(sha1):
      # type: (str) -> List[str]
      
      cmd = 'git branch --contains {}'.format(sha1)
      return shell.run(
          cmd,
          capture=True,
          never_pretend=True
      ).stdout.strip().split()
docs: Get the name of the branches that this commit belongs to.