2
A
답변
1
A가 커밋 test_repository.py
에서와 같이,이 한 줄 수있을 것 같지 않습니다에 대한 다양한 테스트를 고려할 때 :
r.stage(['a'])
commit_sha = r.do_commit('modified a',
committer='Test Committer <[email protected]>',
author='Test Author <[email protected]>',
commit_timestamp=12395, commit_timezone=0,
author_timestamp=12395, author_timezone=0)
커밋을 호출하기 전에
또 다른 방법은 git-python을 사용하는 것입니다.이 방법은 git의 래퍼이지만 상자에서 꺼낸 기능을 제공하지는 않습니다.
커밋 메시지 외에도 r.do_commit()에 대한 다른 인수는 선택 사항입니다. – jelmer