code: def name(self):
          
          # first two path tokens are can be removed as they are
          # refs/heads or refs/tags or refs/remotes
          tokens = self.path.split('/')
          if len(tokens) < 3:
              return self.path           # could be refs/HEAD
          return '/'.join(tokens[2:])
docs: :return: (shortest) Name of this reference - it may contain path components