]> git.proxmox.com Git - libgit2.git/commitdiff
Change interface for Tree Index attr (always unsigned)
authorVicent Marti <tanoku@gmail.com>
Sat, 5 Mar 2011 11:45:05 +0000 (13:45 +0200)
committerVicent Marti <tanoku@gmail.com>
Sat, 5 Mar 2011 11:46:37 +0000 (13:46 +0200)
Signed-off-by: Vicent Marti <tanoku@gmail.com>
include/git2/tree.h
src/tree.c

index a3c60129116010bda2069de3d02f28e8b5ee0564..3085b3fd6c16840eadf27bc7cbcc3825388e0a4e 100644 (file)
@@ -214,8 +214,9 @@ GIT_EXTERN(void) git_tree_entry_set_name(git_tree_entry *entry, const char *name
  *
  * @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
index 16824f9d21def54ba1db296e3be87f9e07445889..702cccbce54f93fdea047f8391fc9d7145e3f1e3 100644 (file)
@@ -107,7 +107,7 @@ const git_oid *git_tree_id(git_tree *c)
        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);