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 @@ -231,15 +231,15 @@ static void discard_unused_subtrees(struct cache_tree *it)
231
231
}
232
232
}
233
233
234
- int cache_tree_fully_valid (struct cache_tree * it )
234
+ static int cache_tree_fully_valid_1 (struct cache_tree * it )
235
235
{
236
236
int i ;
237
237
if (!it )
238
238
return 0 ;
239
239
if (it -> entry_count < 0 || !repo_has_object_file (the_repository , & it -> oid ))
240
240
return 0 ;
241
241
for (i = 0 ; i < it -> subtree_nr ; i ++ ) {
242
- if (!cache_tree_fully_valid (it -> down [i ]-> cache_tree ))
242
+ if (!cache_tree_fully_valid_1 (it -> down [i ]-> cache_tree ))
243
243
return 0 ;
244
244
}
245
245
return 1 ;
@@ -250,6 +250,17 @@ static int must_check_existence(const struct cache_entry *ce)
250
250
return !(repo_has_promisor_remote (the_repository ) && ce_skip_worktree (ce ));
251
251
}
252
252
253
+ int cache_tree_fully_valid (struct cache_tree * it )
254
+ {
255
+ int result ;
256
+
257
+ trace2_region_enter ("cache_tree" , "fully_valid" , NULL );
258
+ result = cache_tree_fully_valid_1 (it );
259
+ trace2_region_leave ("cache_tree" , "fully_valid" , NULL );
260
+
261
+ return result ;
262
+ }
263
+
253
264
static int update_one (struct cache_tree * it ,
254
265
struct cache_entry * * cache ,
255
266
int entries ,
You can’t perform that action at this time.
0 commit comments