genlog.py 文件源码

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

项目:genlog 作者: inconvergent 项目源码 文件源码
def __commit_all(self, thumb, m):
    from os import sep
    from git import Actor

    info_file = thumb.split(sep)[-1]
    self.repo.git.add('-A')
    self.repo.git.add(thumb, '-f')

    email = self.__get_author()
    a = None
    if email:
      a = Actor('genlog', email)

    if m:
      s = m
    else:
      s = ':genlog:'

    s += '\n\n:thumb:{:s}'.format(info_file)
    self.repo.index.commit(s, committer=a, author=a)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号