apply: pass apply state to build_fake_ancestor()
commitb4290342dd2d957cbcdb100c7d847802746b0730
authorChristian Couder <christian.couder@gmail.com>
Sun, 4 Sep 2016 20:18:31 +0000 (4 22:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Sep 2016 19:29:54 +0000 (7 12:29 -0700)
tree95307bc8408099bf117f0969b9e9927ebd5bb631
parent7e1bad24e3b7f220813d8a449f19652113edb923
apply: pass apply state to build_fake_ancestor()

To libify git apply functionality, we will need to read from a
different index file in get_current_sha1(). This index file will be
stored in "struct apply_state", so let's pass the state to
build_fake_ancestor() which will later pass it to get_current_sha1().

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
apply.c