2012-08-13 2 views

답변

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의 래퍼이지만 상자에서 꺼낸 기능을 제공하지는 않습니다.

+0

커밋 메시지 외에도 r.do_commit()에 대한 다른 인수는 선택 사항입니다. – jelmer