apply: split load_preimage() helper function out
commit37b9c903eb825ca741ea0eddc942309f892b682f
authorJunio C Hamano <gitster@pobox.com>
Tue, 8 May 2012 20:35:21 +0000 (8 13:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jul 2012 21:36:26 +0000 (9 14:36 -0700)
tree5e2ba19918cea774bf2c314bb6a5336737b2f275
parentf4c66eeddd37d3e5f4043df89c2679fbadeb57bd
apply: split load_preimage() helper function out

Given a patch for a single path, the function apply_data() reads the
preimage in core, and applies the change represented in the patch.

Separate out the first part that reads the preimage into a separate
helper function load_preimage().

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