MCPcopy Index your code
hub / github.com/git/git / get_progress

Function get_progress

unpack-trees.c:361–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361static struct progress *get_progress(struct unpack_trees_options *o,
362 struct index_state *index)
363{
364 unsigned cnt = 0, total = 0;
365
366 if (!o->update || !o->verbose_update)
367 return NULL;
368
369 for (; cnt < index->cache_nr; cnt++) {
370 const struct cache_entry *ce = index->cache[cnt];
371 if (ce->ce_flags & (CE_UPDATE | CE_WT_REMOVE))
372 total++;
373 }
374
375 return start_delayed_progress(the_repository,
376 _("Updating files"), total);
377}
378
379static void setup_collided_checkout_detection(struct checkout *state,
380 struct index_state *index)

Callers 1

check_updatesFunction · 0.85

Calls 1

start_delayed_progressFunction · 0.85

Tested by

no test coverage detected