apply: move libified code from builtin/apply.c to apply.{c,h}
commit13b5af22f39f5e7d952a4c98ffb7ea25053800c1
authorChristian Couder <chriscool@tuxfamily.org>
Fri, 22 Apr 2016 18:55:46 +0000 (22 20:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Sep 2016 19:29:53 +0000 (7 12:29 -0700)
treef768b1893755e3ba1ba7e35d5f6a1934ac50df3e
parent803bf4e012687d92f4c136febe0881852738d57d
apply: move libified code from builtin/apply.c to apply.{c,h}

As most of the apply code in builtin/apply.c has been libified by a number of
previous commits, it can now be moved to apply.{c,h}, so that more code can
use it.

Helped-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Helped-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
apply.c [copied from builtin/apply.c with 96% similarity]
apply.h
builtin/apply.c