Merge branch 'rs/sequencer-oidset-insert-avoids-dups' into maint
Code clean-up. * rs/sequencer-oidset-insert-avoids-dups: sequencer: use return value of oidset_insert()
This commit is contained in:
@ -4145,9 +4145,7 @@ static int make_script_with_merges(struct pretty_print_context *pp,
|
|||||||
struct object_id *oid = &parent->item->object.oid;
|
struct object_id *oid = &parent->item->object.oid;
|
||||||
if (!oidset_contains(&interesting, oid))
|
if (!oidset_contains(&interesting, oid))
|
||||||
continue;
|
continue;
|
||||||
if (!oidset_contains(&child_seen, oid))
|
if (oidset_insert(&child_seen, oid))
|
||||||
oidset_insert(&child_seen, oid);
|
|
||||||
else
|
|
||||||
label_oid(oid, "branch-point", &state);
|
label_oid(oid, "branch-point", &state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user