apply: move 'struct apply_state' to apply.h
commit71501a71d0431ade410afa618adf55806e1f5f11
authorChristian Couder <christian.couder@gmail.com>
Mon, 8 Aug 2016 21:02:59 +0000 (8 23:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Aug 2016 19:41:46 +0000 (11 12:41 -0700)
tree88d1226b592e008b5e7bec47508dc4eae949b47d
parent4d5acae0ca9c3a72c7ba7d82d684e7c0e57f8e92
apply: move 'struct apply_state' to apply.h

To libify `git apply` functionality we must make 'struct apply_state'
usable outside "builtin/apply.c".

Let's do that by creating a new "apply.h" and moving
'struct apply_state' there.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
apply.h [new file with mode: 0644]
builtin/apply.c