Re: [PATCH v3 2/5] Teach mv to move submodules using a gitfile

2013-07-31 Thread Fredrik Gustafsson
On Tue, Jul 30, 2013 at 09:50:03PM +0200, Jens Lehmann wrote: +/* Update gitfile and core.worktree setting to connect work tree and git dir */ +void connect_work_tree_and_git_dir(const char *work_tree, const char *git_dir) +{ + struct strbuf file_name = STRBUF_INIT; + struct

[PATCH v3 2/5] Teach mv to move submodules using a gitfile

2013-07-30 Thread Jens Lehmann
When moving a submodule which uses a gitfile to point to the git directory stored in .git/modules/name of the superproject two changes must be made to make the submodule work: the .git file and the core.worktree setting must be adjusted to point from work tree to git directory and back. Achieve