Signed-off-by: Vicent Marti <tanoku@gmail.com>
*
* @param entry Entry object which will be modified
* @param oid new attributes for the entry
+ * @return 0 if the attributes were properly set; error code otherwise
*/
-GIT_EXTERN(int) git_tree_entry_set_attributes(git_tree_entry *entry, int attr);
+GIT_EXTERN(int) git_tree_entry_set_attributes(git_tree_entry *entry, unsigned int attr);
/** @} */
GIT_END_DECL
return git_object_id((git_object *)c);
}
-int git_tree_entry_set_attributes(git_tree_entry *entry, int attr)
+int git_tree_entry_set_attributes(git_tree_entry *entry, unsigned int attr)
{
assert(entry && entry->owner);