FriendCode / gittle

Pythonic Git for Humans
Other
732 stars 90 forks source link

get one file #86

Closed richarddevers closed 7 years ago

richarddevers commented 7 years ago

Hello gittle team!

Is there a way to get only one file of one specific branch?

Thanks,

regards

jelmer commented 7 years ago

I'm not sure if this functionality is exposed in gittle, but Dulwich (which gittle uses for heavy-lifting) can do this. See http://www.aaronheld.com/post/using-python-dulwich-to-load-any-version-of-a-file-from-a-local-git-repo

richarddevers commented 7 years ago

Ok, thanks for your reply!