Code

apply: handle "traditional" creation/deletion diff correctly.
authorJunio C Hamano <junkio@cox.net>
Sat, 4 Nov 2006 10:28:53 +0000 (02:28 -0800)
committerJunio C Hamano <junkio@cox.net>
Sat, 4 Nov 2006 10:35:17 +0000 (02:35 -0800)
commit6f9f3b263b1c86889d6fae0d50c75be0f3227003
tree542e1318c6b7357d3b921c44a5197b9a88ac25f5
parentba158a32b9e237912ebe7dfe7bd56e2c531cb062
apply: handle "traditional" creation/deletion diff correctly.

We deduced a GNU diff output that does not use /dev/null convention
as creation (deletion) diff correctly by looking at the lack of context
and deleted lines (added lines), but forgot to reset the new (old) name
field properly.

This was a regression when we added a workaround for --unified=0 insanity.

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