libgit2

git_tree_entry_set_attributes

Version:

Change the attributes of a tree entry.

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

Signature

int git_tree_entry_set_attributes(git_tree_entry *entry, unsigned int attr);

Parameters

In
entry

Entry object which will be modified

unsigned int
In
attr

Returns

int

0 if the attributes were properly set; error code otherwise

Versions