Skip to content

Instantly share code, notes, and snippets.

@umpirsky
Created January 5, 2012 18:27
Show Gist options
  • Save umpirsky/1566513 to your computer and use it in GitHub Desktop.
Save umpirsky/1566513 to your computer and use it in GitHub Desktop.
client, path = get_transport_and_path('git://github.com/jelmer/dulwich.git')
repo = Repo('/home/umpirsky/Projects/Python/dullwich')
remote_refs = client.fetch(path, repo)
for commit in repo.revision_history(remote_refs['refs/heads/master'])[:3]:
for t in repo.object_store.tree_changes(commit.parents[0], commit.tree):
print t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment