dulwich-users team mailing list archive
-
dulwich-users team
-
Mailing list archive
-
Message #00752
Re: changes_from_tree
On Wed, Sep 19, 2012 at 11:05:22PM -0700, Mark Mikofski wrote:
> this function needs lookup_entry which returns KeyError or a tuple of sha and mode, but I don't know how to make a sha from a filename, filename_to_sha doesn't work
tree.__getitem__ looks up the filename in a tree.
Alternatively, you can use Index.changes_from_tree which handles this
for you.
Cheers,
Jelmer
References