← Back to team overview

dulwich-users team mailing list archive

Re: Specifying a file's path?

 

Hi Adam,

On Sat, Jul 20, 2013 at 08:42:54PM -0400, Adam Seering wrote:
> 	I'm trying to programmatically commit files to a bare repo.
> 
> 	The online documentation has a very nice example of how to add a
> file as a Blob, and how to specify its filename.
> 
> 	But it doesn't indicate how to specify the file's path.
> 
> 	Any pointers?  Sorry if this is obvious; but I can't immediately
> figure it out from the documentation...
You wouldn't add a Blob by path, but rather add an entry for it to the
Tree object that blob lives in.

Cheers,

Jelmer


References