builtin/commit-graph.c: dereference tags in builtin
authorTaylor Blau <me@ttaylorr.com>
Wed, 13 May 2020 21:59:44 +0000 (15:59 -0600)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 May 2020 19:51:11 +0000 (12:51 -0700)
commit5b6653e523cd2a0357924caef339adfeab12903b
treec54d21eff50e7ad3f0efe3f4fe1de991b3f258a3
parentfa8953cb401d2c73c280eb6c70e7a7918dbe8bfb
builtin/commit-graph.c: dereference tags in builtin

When given a list of commits, the commit-graph machinery calls
'lookup_commit_reference_gently()' on each element in the set and treats
the resulting set of OIDs as the base over which to close for
reachability.

In an earlier collection of commits, the 'git commit-graph write
--reachable' case made the inner-most call to
'lookup_commit_reference_gently()' by peeling references before they
were passed over to the commit-graph internals.

Do the analog for 'git commit-graph write --stdin-commits' by calling
'lookup_commit_reference_gently()' outside of the commit-graph
machinery, making the inner-most call a noop.

Since this may incur additional processing time, surround
'read_one_commit' with a progress meter to provide output to the caller.

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