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
46ea40d9
Commit
46ea40d9
authored
Jun 29, 2012
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tree: Rename `entry_copy` to `entry_dup`
parent
7e8c146c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/git2/tree.h
+2
-2
src/tree.c
+2
-2
No files found.
include/git2/tree.h
View file @
46ea40d9
...
...
@@ -76,7 +76,7 @@ GIT_INLINE(void) git_tree_free(git_tree *tree)
*
* IMPORTANT: This function is only needed for tree
* entries owned by the user, such as the ones returned
* by `git_tree_entry_
copy
`.
* by `git_tree_entry_
dup
`.
*
* @param entry The entry to free
*/
...
...
@@ -92,7 +92,7 @@ GIT_EXTERN(void) git_tree_entry_free(git_tree_entry *entry);
* @param entry A tree entry to duplicate
* @return a copy of the original entry
*/
GIT_EXTERN
(
git_tree_entry
*
)
git_tree_entry_
copy
(
const
git_tree_entry
*
entry
);
GIT_EXTERN
(
git_tree_entry
*
)
git_tree_entry_
dup
(
const
git_tree_entry
*
entry
);
/**
* Get the id of a tree.
...
...
src/tree.c
View file @
46ea40d9
...
...
@@ -143,7 +143,7 @@ void git_tree_entry_free(git_tree_entry *entry)
git__free
(
entry
);
}
git_tree_entry
*
git_tree_entry_
copy
(
const
git_tree_entry
*
entry
)
git_tree_entry
*
git_tree_entry_
dup
(
const
git_tree_entry
*
entry
)
{
size_t
total_size
;
git_tree_entry
*
copy
;
...
...
@@ -739,7 +739,7 @@ int git_tree_entry_bypath(
case
'\0'
:
/* If there are no more components in the path, return
* this entry */
*
entry_out
=
git_tree_entry_
copy
(
entry
);
*
entry_out
=
git_tree_entry_
dup
(
entry
);
return
0
;
}
...
...
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