On 20:39 Tue 14 Aug , Wenhao Xu wrote: > Hi everyone, > > I am new to dulwich and want to implement some functions like "git > cat-file". I am wondering given a SH1 value, how to construct an object > from it? I looked through the doc with no luck.
With any SHA1, you can use repo.get_object(sha1). What it returns is based on what that sha1 represents - be it a commit, a blog, etc. -milki _______________________________________________ Mailing list: https://launchpad.net/~dulwich-users Post to : [email protected] Unsubscribe : https://launchpad.net/~dulwich-users More help : https://help.launchpad.net/ListHelp

