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,7 +234,7 @@ 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 )
@@ -244,7 +244,7 @@ int cache_tree_fully_valid(struct cache_tree *it)
244
244
HAS_OBJECT_RECHECK_PACKED | HAS_OBJECT_FETCH_PROMISOR ))
245
245
return 0 ;
246
246
for (i = 0 ; i < it -> subtree_nr ; i ++ ) {
247
- if (!cache_tree_fully_valid (it -> down [i ]-> cache_tree ))
247
+ if (!cache_tree_fully_valid_1 (it -> down [i ]-> cache_tree ))
248
248
return 0 ;
249
249
}
250
250
return 1 ;
@@ -255,6 +255,17 @@ static int must_check_existence(const struct cache_entry *ce)
255
255
return !(repo_has_promisor_remote (the_repository ) && ce_skip_worktree (ce ));
256
256
}
257
257
258
+ int cache_tree_fully_valid (struct cache_tree * it )
259
+ {
260
+ int result ;
261
+
262
+ trace2_region_enter ("cache_tree" , "fully_valid" , NULL );
263
+ result = cache_tree_fully_valid_1 (it );
264
+ trace2_region_leave ("cache_tree" , "fully_valid" , NULL );
265
+
266
+ return result ;
267
+ }
268
+
258
269
static int update_one (struct cache_tree * it ,
259
270
struct cache_entry * * cache ,
260
271
int entries ,
You can’t perform that action at this time.
0 commit comments