summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2012-06-29 17:08:36 +0200
committerVicent Marti <tanoku@gmail.com>2012-06-29 17:08:36 +0200
commit46ea40d9955a171187d252872f5c9bac1da7e286 (patch)
tree954df8e226983707c9a079129903bf7854832131 /src
parent7e8c146c6b78fe5b9d26f059e381b978260984f4 (diff)
downloadlibgit2-tree-entry-by-path.tar.gz
tree: Rename `entry_copy` to `entry_dup`tree-entry-by-path
Diffstat (limited to 'src')
-rw-r--r--src/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree.c b/src/tree.c
index 8e97f442f..b609eea33 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -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;
}