Hi Emiliano,

On Tue, 2009-11-17 at 17:16 +0100, Emiliano Heyns wrote:
> Is there a way to fetch a specific revision of a file using dulwich?
Do you mean fetching the copy of a file as it existed in a particular
Git commit ?

This is certainly possible for local repositories, you should retrieve
the tree sha associated with the particular commit and then use
tree_path_lookup to find the individual blob.

It's not possible for remote git repositories, because of limitations in
the git network protocol.

Cheers,

jelmer

-- 
Jelmer Vernooij <[email protected]> - http://samba.org/~jelmer/
Jabber: [email protected]

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Mailing list: https://launchpad.net/~dulwich-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dulwich-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to