Code

apply: split out removal and creation into different phases.
authorJunio C Hamano <junkio@cox.net>
Mon, 17 Jul 2006 06:52:09 +0000 (23:52 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 17 Jul 2006 06:52:09 +0000 (23:52 -0700)
commiteed46644ca48ad08e1fd71e14afbe801399e8a67
tree0c0de6b7e698f87684ab1025236f698230035d9f
parentc28c571c143a5145665f4bf334671ac3a7d0980c
apply: split out removal and creation into different phases.

This reworks write_out_result() loop so we first remove the paths that
are to go away and then create them after finishing all the removal.

This is necessary when a patch creates a file "foo" and removes a file
"foo/bar".

Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-apply.c