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)
评论列表
文章目录