apply: split quoted filename handling into new function
commitbb7306b5a350fd2143347be3d9b7d8588567d715
authorJonathan Nieder <jrnieder@gmail.com>
Thu, 19 Aug 2010 01:46:46 +0000 (18 20:46 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 22 Aug 2010 06:04:22 +0000 (21 23:04 -0700)
tree9796483bfcce04508d1c1247aecbb8b33b93f7db
parent64fdc08dac6694d1e754580e7acb82dfa4988bb9
apply: split quoted filename handling into new function

The new find_name_gnu() function handles new-style '--- "a/foo"'
patch header lines, leaving find_name() itself a bit less
daunting.

Functional change: do not clobber the p-value when there are not
enough path components in a quoted file name to honor it.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/apply.c
t/t4120-apply-popt.sh