insert


Description:

public TreeEntry? insert (string filename, OId oid, FileMode file_mode) throws Error

Insert a file with a given blob in the tree builder.

If the tree builder already contains an entry for the given file, then this entry will be overwritten.

Note that the returned TreeEntry is bound to the lifetime of the tree builder and cannot be used after the tree builder has been freed.

Parameters:

this

a TreeBuilder.

filename

the file name.

oid

the OId of the file blob to insert.

file_mode

a FileMode.

Returns:

a TreeEntry or null.




2022 vala-language.org