Re: [PATCH v7 2/2] path: implement common_dir handling in git_path_submodule()

2015-08-17 Thread Stefan Beller
On Tue, Aug 4, 2015 at 3:05 PM, Max Kirillov wrote: > When submodule is a linked worktree, "git diff --submodule" and other > calls which directly access the submodule's object database do not correctly > calculate its path. Fix it by changing the git_path_submodule() behavior, > to use either com

[PATCH v7 2/2] path: implement common_dir handling in git_path_submodule()

2015-08-04 Thread Max Kirillov
When submodule is a linked worktree, "git diff --submodule" and other calls which directly access the submodule's object database do not correctly calculate its path. Fix it by changing the git_path_submodule() behavior, to use either common or per-worktree directory. Do it similarly as for parent