apply: refactor "previous patch" logic
authorJunio C Hamano <gitster@pobox.com>
Wed, 16 May 2012 21:03:52 +0000 (14:03 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jul 2012 21:36:50 +0000 (14:36 -0700)
The code to grab the result of application of a previous patch in the
input was mixed with error message generation for a case where a later
patch tries to modify contents of a path that has been removed.

The same code is duplicated elsewhere in the code. Introduce a helper
to clarify what is going on.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found