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.
this |
a TreeBuilder. |
filename |
the file name. |
oid |
the OId of the file blob to insert. |
file_mode |
a FileMode. |
a TreeEntry or null. |