summaryrefslogtreecommitdiff
path: root/trailer.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2018-10-04 17:09:39 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-10-04 11:12:13 -0700
commit22a164651114738c723c4459140e1e5330491467 (patch)
treebe200356f79268fbdadfbef90f89ef1ff29bc359 /trailer.c
parentfetch-pack: factor out is_unmatched_ref() (diff)
downloadtgif-22a164651114738c723c4459140e1e5330491467.tar.xz
fetch-pack: load tip_oids eagerly iff needed
tip_oids_contain() lazily loads refs into an oidset at its first call. It abuses the internal (sub)member .map.tablesize of that oidset to check if it has done that already. Determine if the oidset needs to be populated upfront and then do that instead. This duplicates a loop, but simplifies the existing one by separating concerns between the two. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trailer.c')
0 files changed, 0 insertions, 0 deletions