Skip to content

Instantly share code, notes, and snippets.

@umpirsky
Created January 5, 2012 13:51
Show Gist options
  • Save umpirsky/1565342 to your computer and use it in GitHub Desktop.
Save umpirsky/1565342 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]:
write_tree_diff(sys.stdout, repo.object_store, commit.parents[0], commit.tree)
sys.exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment