def _add_reference(self, commit_id, refname, reftype):
        if commit_id not in git.commit_pool:
            return

        commit = git.commit_pool[commit_id]
        if commit not in self.nodes:
            return

        self.nodes[commit].references.append((refname, reftype))
dataset/ETHPy150Open gyim/stupidgit/stupidgit_gui/CommitList.py/CommitList._add_reference/original