Re: [PATCH v15 03/16] quote.c: substitute path_relative with relative_path

2013-06-26 Thread Junio C Hamano
Jiang Xin writes: > Substitute the function path_relative in quote.c with the function > relative_path. Function relative_path can be treated as an enhanced > and robust version of path_relative. > ... > And if prefix has no trailing slash, path_relative can not work properly > either. But since

[PATCH v15 03/16] quote.c: substitute path_relative with relative_path

2013-06-25 Thread Jiang Xin
Substitute the function path_relative in quote.c with the function relative_path. Function relative_path can be treated as an enhanced and robust version of path_relative. Outputs of path_relative and it's replacement (relative_path) are the same for the following cases: path prefix