Browse Source

Merge branch 'en/sparse-checkout'

Consistency fix to a topic already in 'master'.

* en/sparse-checkout:
  unpack-trees: also allow get_progress() to work on a different index
maint
Junio C Hamano 5 years ago
parent
commit
fde4622c08
  1. 6
      unpack-trees.c

6
unpack-trees.c

@ -333,10 +333,10 @@ static void load_gitmodules_file(struct index_state *index, @@ -333,10 +333,10 @@ static void load_gitmodules_file(struct index_state *index,
}
}

static struct progress *get_progress(struct unpack_trees_options *o)
static struct progress *get_progress(struct unpack_trees_options *o,
struct index_state *index)
{
unsigned cnt = 0, total = 0;
struct index_state *index = &o->result;

if (!o->update || !o->verbose_update)
return NULL;
@ -415,7 +415,7 @@ static int check_updates(struct unpack_trees_options *o, @@ -415,7 +415,7 @@ static int check_updates(struct unpack_trees_options *o,
if (o->clone)
setup_collided_checkout_detection(&state, index);

progress = get_progress(o);
progress = get_progress(o, index);

git_attr_set_direction(GIT_ATTR_CHECKOUT);


Loading…
Cancel
Save