]> git.ipfire.org Git - thirdparty/git.git/commit - commit-graph.c
commit-graph.c: extract 'refs_cb_data'
authorTaylor Blau <me@ttaylorr.com>
Tue, 5 May 2020 01:13:35 +0000 (19:13 -0600)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 May 2020 06:20:24 +0000 (23:20 -0700)
commit1fe10844cad39db18de18412c928a0e69b0067ae
treed3892121c33c8e31665cac2afc1dbb95d404cf0f
parentb34789c0b0d3b137f0bb516b417bd8d75e0cb306
commit-graph.c: extract 'refs_cb_data'

In subsequent patches, we are going to update a progress meter when
'add_ref_to_set()' is called, and need a convenient way to pass a
'struct progress *' in from the caller.

Introduce 'refs_cb_data' as a catch-all for parameters that
'add_ref_to_set' may need, and wrap the existing single parameter in
that struct.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c