Commit 46ea40d9 by Vicent Marti

tree: Rename `entry_copy` to `entry_dup`

parent 7e8c146c
...@@ -76,7 +76,7 @@ GIT_INLINE(void) git_tree_free(git_tree *tree) ...@@ -76,7 +76,7 @@ GIT_INLINE(void) git_tree_free(git_tree *tree)
* *
* IMPORTANT: This function is only needed for tree * IMPORTANT: This function is only needed for tree
* entries owned by the user, such as the ones returned * 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 * @param entry The entry to free
*/ */
...@@ -92,7 +92,7 @@ GIT_EXTERN(void) git_tree_entry_free(git_tree_entry *entry); ...@@ -92,7 +92,7 @@ GIT_EXTERN(void) git_tree_entry_free(git_tree_entry *entry);
* @param entry A tree entry to duplicate * @param entry A tree entry to duplicate
* @return a copy of the original entry * @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. * Get the id of a tree.
......
...@@ -143,7 +143,7 @@ void git_tree_entry_free(git_tree_entry *entry) ...@@ -143,7 +143,7 @@ void git_tree_entry_free(git_tree_entry *entry)
git__free(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; size_t total_size;
git_tree_entry *copy; git_tree_entry *copy;
...@@ -739,7 +739,7 @@ int git_tree_entry_bypath( ...@@ -739,7 +739,7 @@ int git_tree_entry_bypath(
case '\0': case '\0':
/* If there are no more components in the path, return /* If there are no more components in the path, return
* this entry */ * this entry */
*entry_out = git_tree_entry_copy(entry); *entry_out = git_tree_entry_dup(entry);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment