예제 #1
0
    def extra_footers(self):
        """Get any extra footers for this commit as an OrderedDict of
    {footer: [values]}.

    Extra footers are stored as git-notes on the refs/notes/extra_footers ref.
    """
        footer_lines = []
        raw = self.notes('refs/notes/extra_footers')
        if raw is not None:
            _, footer_lines = CommitData.parse_raw_message(
                [''] + raw.rstrip('\n').splitlines())
        return CommitData.frozen_dict_from_kv_pairs(footer_lines)
예제 #2
0
파일: commit.py 프로젝트: eunchong/infra
  def extra_footers(self):
    """Get any extra footers for this commit as an OrderedDict of
    {footer: [values]}.

    Extra footers are stored as git-notes on the refs/notes/extra_footers ref.
    """
    footer_lines = []
    raw = self.notes('refs/notes/extra_footers')
    if raw is not None:
      _, footer_lines = CommitData.parse_raw_message(
        [''] + raw.rstrip('\n').splitlines()
      )
    return CommitData.frozen_dict_from_kv_pairs(footer_lines)