libgit2

git_tree_remove_entry_byname

Version:

Remove an entry by its filename.

This will mark the tree as modified; the modified entry will be written back to disk on the next git_object_write()

Signature

int git_tree_remove_entry_byname(git_tree *tree, const char *filename);

Parameters

git_tree *
In
tree

Tree where to remove the entry

const char *
In
filename

File name of the entry

Returns

int

0 on successful removal; GIT_ENOTFOUND if the entry wasn't found

Versions