repository.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:builds 作者: open-power-host-os 项目源码 文件源码
def commit_changes(self, commit_message, committer_name, committer_email):
        """
        Commit all changes made to the repository.

        Args:
            commit_message (str): message describing the commit
            committer_name (str): committer name
            committer_email (str): committer email
        """
        LOG.info("Adding files to repository index")
        self.index.add(["*"])

        LOG.info("Committing changes to local repository")
        actor = git.Actor(committer_name, committer_email)
        self.index.commit(commit_message, author=actor, committer=actor)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号