File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -234,15 +234,15 @@ static void discard_unused_subtrees(struct cache_tree *it)
234234 }
235235}
236236
237- int cache_tree_fully_valid (struct cache_tree * it )
237+ static int cache_tree_fully_valid_1 (struct cache_tree * it )
238238{
239239 int i ;
240240 if (!it )
241241 return 0 ;
242242 if (it -> entry_count < 0 || !repo_has_object_file (the_repository , & it -> oid ))
243243 return 0 ;
244244 for (i = 0 ; i < it -> subtree_nr ; i ++ ) {
245- if (!cache_tree_fully_valid (it -> down [i ]-> cache_tree ))
245+ if (!cache_tree_fully_valid_1 (it -> down [i ]-> cache_tree ))
246246 return 0 ;
247247 }
248248 return 1 ;
@@ -253,6 +253,17 @@ static int must_check_existence(const struct cache_entry *ce)
253253 return !(repo_has_promisor_remote (the_repository ) && ce_skip_worktree (ce ));
254254}
255255
256+ int cache_tree_fully_valid (struct cache_tree * it )
257+ {
258+ int result ;
259+
260+ trace2_region_enter ("cache_tree" , "fully_valid" , NULL );
261+ result = cache_tree_fully_valid_1 (it );
262+ trace2_region_leave ("cache_tree" , "fully_valid" , NULL );
263+
264+ return result ;
265+ }
266+
256267static int update_one (struct cache_tree * it ,
257268 struct cache_entry * * cache ,
258269 int entries ,
You can’t perform that action at this time.
0 commit comments