Re: [PATCH 2/2] Use simpler relative_path when set_git_dir

2013-09-12 Thread Johannes Sixt
Am 12.09.2013 11:12, schrieb Jiang Xin: > Using a relative_path as git_dir first appears in v1.5.6-1-g044bbbc. > It will make git_dir shorter only if git_dir is inside work_tree, > and this will increase performance. But my last refactor effort on > relative_path function (commit v1.8.3-rc2-12-ge02

[PATCH 2/2] Use simpler relative_path when set_git_dir

2013-09-12 Thread Jiang Xin
Using a relative_path as git_dir first appears in v1.5.6-1-g044bbbc. It will make git_dir shorter only if git_dir is inside work_tree, and this will increase performance. But my last refactor effort on relative_path function (commit v1.8.3-rc2-12-ge02ca72) changed that. Always use relative_path as