builtin/apply: move applying patches into apply_all_patches()
commit91b769c48f4cf46d9514770849a1bf9cb33430c3
authorChristian Couder <christian.couder@gmail.com>
Tue, 24 May 2016 08:11:24 +0000 (24 10:11 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Jun 2016 17:10:16 +0000 (1 10:10 -0700)
tree5f7eaf8aec6c5ce7595a27bbc8d760dc8265c73e
parentc84a86c99526b88cfd7664888ecbfd28f35a025f
builtin/apply: move applying patches into apply_all_patches()

To libify the apply functionality we should provide a function to
apply many patches. Let's move the code to do that into a new
apply_all_patches() function.

Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/apply.c