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)
234
234
}
235
235
}
236
236
237
- int cache_tree_fully_valid (struct cache_tree * it )
237
+ static int cache_tree_fully_valid_1 (struct cache_tree * it )
238
238
{
239
239
int i ;
240
240
if (!it )
241
241
return 0 ;
242
242
if (it -> entry_count < 0 || !repo_has_object_file (the_repository , & it -> oid ))
243
243
return 0 ;
244
244
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 ))
246
246
return 0 ;
247
247
}
248
248
return 1 ;
@@ -253,6 +253,17 @@ static int must_check_existence(const struct cache_entry *ce)
253
253
return !(repo_has_promisor_remote (the_repository ) && ce_skip_worktree (ce ));
254
254
}
255
255
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
+
256
267
static int update_one (struct cache_tree * it ,
257
268
struct cache_entry * * cache ,
258
269
int entries ,
You can’t perform that action at this time.
0 commit comments