Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
545a6915
Commit
545a6915
authored
Mar 05, 2011
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change interface for Tree Index attr (always unsigned)
Signed-off-by: Vicent Marti <tanoku@gmail.com>
parent
9de27ad0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
include/git2/tree.h
+2
-1
src/tree.c
+1
-1
No files found.
include/git2/tree.h
View file @
545a6915
...
...
@@ -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
...
...
src/tree.c
View file @
545a6915
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment