Browse Source

revision: clear the topo-walk flags in reset_revision_walk

Not doing so can lead to wrong topo-walks when using the revision walk API
consecutively.

Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Mike Hommey 5 years ago committed by Junio C Hamano
parent
commit
ffa1f28fea
  1. 2
      revision.c

2
revision.c

@ -3088,7 +3088,7 @@ static void set_children(struct rev_info *revs) @@ -3088,7 +3088,7 @@ static void set_children(struct rev_info *revs)

void reset_revision_walk(void)
{
clear_object_flags(SEEN | ADDED | SHOWN);
clear_object_flags(SEEN | ADDED | SHOWN | TOPO_WALK_EXPLORED | TOPO_WALK_INDEGREE);
}

static int mark_uninteresting(const struct object_id *oid,

Loading…
Cancel
Save