]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sequencer: use return value of oidset_insert()
authorRené Scharfe <l.s.r@web.de>
Wed, 3 Oct 2018 13:06:49 +0000 (15:06 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Oct 2018 04:12:01 +0000 (21:12 -0700)
commit6e8fc70fcefd4c362142c7d437488d3fbfdc22a8
tree9fe5224b6776d887deba87834ca9749c58265fdf
parent1d4361b0f344188ab5eec6dcea01f61a3a3a1670
sequencer: use return value of oidset_insert()

oidset_insert() returns 1 if the object ID is already in the set and
doesn't add it again, or 0 if it hadn't been present.  Make use of that
fact instead of checking with an extra oidset_contains() call.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c