@@ -405,7 +405,7 @@ int git_iterator_for_nothing(
405405 iter = git__calloc (1 , sizeof (empty_iterator ));
406406 GIT_ERROR_CHECK_ALLOC (iter );
407407
408- iter -> base .type = GIT_ITERATOR_TYPE_EMPTY ;
408+ iter -> base .type = GIT_ITERATOR_EMPTY ;
409409 iter -> base .cb = & callbacks ;
410410 iter -> base .flags = options -> flags ;
411411
@@ -950,7 +950,7 @@ int git_iterator_for_tree(
950950 iter = git__calloc (1 , sizeof (tree_iterator ));
951951 GIT_ERROR_CHECK_ALLOC (iter );
952952
953- iter -> base .type = GIT_ITERATOR_TYPE_TREE ;
953+ iter -> base .type = GIT_ITERATOR_TREE ;
954954 iter -> base .cb = & callbacks ;
955955
956956 if ((error = iterator_init_common (& iter -> base ,
@@ -974,7 +974,7 @@ int git_iterator_current_tree_entry(
974974 tree_iterator_frame * frame ;
975975 tree_iterator_entry * entry ;
976976
977- assert (i -> type == GIT_ITERATOR_TYPE_TREE );
977+ assert (i -> type == GIT_ITERATOR_TREE );
978978
979979 iter = (tree_iterator * )i ;
980980
@@ -991,7 +991,7 @@ int git_iterator_current_parent_tree(
991991 tree_iterator * iter ;
992992 tree_iterator_frame * frame ;
993993
994- assert (i -> type == GIT_ITERATOR_TYPE_TREE );
994+ assert (i -> type == GIT_ITERATOR_TREE );
995995
996996 iter = (tree_iterator * )i ;
997997
@@ -1271,7 +1271,7 @@ static int filesystem_iterator_entry_hash(
12711271 return 0 ;
12721272 }
12731273
1274- if (iter -> base .type == GIT_ITERATOR_TYPE_WORKDIR )
1274+ if (iter -> base .type == GIT_ITERATOR_WORKDIR )
12751275 return git_repository_hashfile (& entry -> id ,
12761276 iter -> base .repo , entry -> path , GIT_OBJECT_BLOB , NULL );
12771277
@@ -1668,8 +1668,8 @@ int git_iterator_current_workdir_path(git_buf **out, git_iterator *i)
16681668 filesystem_iterator * iter = GIT_CONTAINER_OF (i , filesystem_iterator , base );
16691669 const git_index_entry * entry ;
16701670
1671- if (i -> type != GIT_ITERATOR_TYPE_FS &&
1672- i -> type != GIT_ITERATOR_TYPE_WORKDIR ) {
1671+ if (i -> type != GIT_ITERATOR_FS &&
1672+ i -> type != GIT_ITERATOR_WORKDIR ) {
16731673 * out = NULL ;
16741674 return 0 ;
16751675 }
@@ -1727,7 +1727,7 @@ bool git_iterator_current_is_ignored(git_iterator *i)
17271727{
17281728 filesystem_iterator * iter = NULL ;
17291729
1730- if (i -> type != GIT_ITERATOR_TYPE_WORKDIR )
1730+ if (i -> type != GIT_ITERATOR_WORKDIR )
17311731 return false;
17321732
17331733 iter = GIT_CONTAINER_OF (i , filesystem_iterator , base );
@@ -1740,7 +1740,7 @@ bool git_iterator_current_tree_is_ignored(git_iterator *i)
17401740 filesystem_iterator * iter = GIT_CONTAINER_OF (i , filesystem_iterator , base );
17411741 filesystem_iterator_frame * frame ;
17421742
1743- if (i -> type != GIT_ITERATOR_TYPE_WORKDIR )
1743+ if (i -> type != GIT_ITERATOR_WORKDIR )
17441744 return false;
17451745
17461746 frame = filesystem_iterator_current_frame (iter );
@@ -1894,7 +1894,7 @@ static int iterator_for_filesystem(
18941894 const char * root ,
18951895 git_index * index ,
18961896 git_tree * tree ,
1897- git_iterator_type_t type ,
1897+ git_iterator_t type ,
18981898 git_iterator_options * options )
18991899{
19001900 filesystem_iterator * iter ;
@@ -1971,7 +1971,7 @@ int git_iterator_for_filesystem(
19711971 git_iterator_options * options )
19721972{
19731973 return iterator_for_filesystem (out ,
1974- NULL , root , NULL , NULL , GIT_ITERATOR_TYPE_FS , options );
1974+ NULL , root , NULL , NULL , GIT_ITERATOR_FS , options );
19751975}
19761976
19771977int git_iterator_for_workdir_ext (
@@ -1999,7 +1999,7 @@ int git_iterator_for_workdir_ext(
19991999 GIT_ITERATOR_IGNORE_DOT_GIT ;
20002000
20012001 return iterator_for_filesystem (out ,
2002- repo , repo_workdir , index , tree , GIT_ITERATOR_TYPE_WORKDIR , & options );
2002+ repo , repo_workdir , index , tree , GIT_ITERATOR_WORKDIR , & options );
20032003}
20042004
20052005
@@ -2248,7 +2248,7 @@ int git_iterator_for_index(
22482248 iter = git__calloc (1 , sizeof (index_iterator ));
22492249 GIT_ERROR_CHECK_ALLOC (iter );
22502250
2251- iter -> base .type = GIT_ITERATOR_TYPE_INDEX ;
2251+ iter -> base .type = GIT_ITERATOR_INDEX ;
22522252 iter -> base .cb = & callbacks ;
22532253
22542254 if ((error = iterator_init_common (& iter -> base , repo , index , options )) < 0 ||
0 commit comments