(current_commit:Commit, base_commit:Union[Commit, str]=None)
| 16 | create_patch=True, R=True, indent_heuristic=True) |
| 17 | |
| 18 | def diff_with_commit(current_commit:Commit, base_commit:Union[Commit, str]=None): |
| 19 | localBaseCommit = base_commit |
| 20 | if not localBaseCommit: |
| 21 | localBaseCommit = EMPTY_TREE_SHA |
| 22 | return current_commit.diff(localBaseCommit, create_patch=True, R=True, indent_heuristic=True) |
| 23 | |
| 24 | def initialize_repo(repo_path): |
| 25 | try: |