]> git.ipfire.org Git - thirdparty/git.git/commit - bundle.c
bundle: split out a helper function to compute and write prerequisites
authorJunio C Hamano <gitster@pobox.com>
Thu, 30 Oct 2014 18:01:37 +0000 (11:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Oct 2014 21:51:47 +0000 (14:51 -0700)
commite8eb25122e2cf966bf774fd0e3596d1b3dc93be6
treefcb257d2dd682fe647ba06f255b71aeba714a65f
parent5e626b91d4a5d2cfee8747facd53d7661f1f9112
bundle: split out a helper function to compute and write prerequisites

The new helper compute_and_write_prerequistes() is ugly, but it
cannot be avoided.  Ideally we should avoid a function that computes
and does I/O at the same time, but the prerequisites lines in the
output needs the human readable title only to help the recipient of
the bundle.  The code copies them straight from the rev-list output
and immediately discards as no other internal computation needs that
information.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
bundle.c