import git
import dulwich
cd d:\workspace\sumatra_git
d:\workspace\sumatra_git
r1=dulwich.repo.Repo(r'd:\workspace\sumatra_git')
r1.controldir()
'd:\\workspace\\sumatra_git\\.git'
r2=git.Repo(r'd:\workspace\sumatra_git')
r2.git_dir
'd:\\workspace\\sumatra_git\\.git'
dulwich.__version__
(0, 8, 5)
git.__version__.split('.')[1]
'3'
dulwich.__version__[1]
8
r1.head()
'e2476c85a06a2f7b3ef5ce2a4a0280f60b64ba09'
r2.head.commit.hexsha
'e2476c85a06a2f7b3ef5ce2a4a0280f60b64ba09'
r2.is_dirty()
False
dulwich.diff_tree.tree_changes?
dulwich.index.commit_index(r1.object_store,r1.open_index())
'ca5a199c9a7ecabfa8920c659512995ae58a3060'
dulwich.diff_tree.tree_changes(r1.object_store,r1.