summaryrefslogtreecommitdiff
path: root/src/checkout.c
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-08-21 11:45:16 +0200
committernulltoken <emeric.fermas@gmail.com>2012-08-21 23:15:13 +0200
commit9d7ac675d06dab2e000ad32f9248631af0191f85 (patch)
tree9e32cfadd2e1ffaa05f72dd5871551180ee0afb9 /src/checkout.c
parenta7dbac0b2372f9dd1af01ae058ec764d3979991f (diff)
downloadlibgit2-9d7ac675d06dab2e000ad32f9248631af0191f85.tar.gz
tree entry: rename git_tree_entry_attributes() into git_tree_entry_filemode()
Diffstat (limited to 'src/checkout.c')
-rw-r--r--src/checkout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checkout.c b/src/checkout.c
index 252d9c4ae..ac540391e 100644
--- a/src/checkout.c
+++ b/src/checkout.c
@@ -88,7 +88,7 @@ static int blob_contents_to_file(git_repository *repo, git_buf *fnbuf,
/* Allow overriding of file mode */
if (!file_mode)
- file_mode = git_tree_entry_attributes(entry);
+ file_mode = git_tree_entry_filemode(entry);
if ((retcode = git_futils_mkpath2file(git_buf_cstr(fnbuf), data->opts->dir_mode)) < 0)
goto bctf_cleanup;
@@ -111,7 +111,7 @@ static int checkout_walker(const char *path, const git_tree_entry *entry, void *
{
int retcode = 0;
tree_walk_data *data = (tree_walk_data*)payload;
- int attr = git_tree_entry_attributes(entry);
+ int attr = git_tree_entry_filemode(entry);
git_buf fnbuf = GIT_BUF_INIT;
git_buf_join_n(&fnbuf, '/', 3,
git_repository_workdir(data->repo),