Re: [PATCH/RFC 2/3] Teach mv to move submodules using a gitfile

2013-04-10 Thread Jens Lehmann
Am 10.04.2013 01:08, schrieb Junio C Hamano: > Jens Lehmann writes: > >> diff --git a/submodule.c b/submodule.c >> index 975bc87..eba9b42 100644 >> --- a/submodule.c >> +++ b/submodule.c >> @@ -1001,3 +1001,67 @@ int merge_submodule(unsigned char result[20], const >> char *path, >> ... >> +i

Re: [PATCH/RFC 2/3] Teach mv to move submodules using a gitfile

2013-04-09 Thread Junio C Hamano
Jens Lehmann writes: > diff --git a/submodule.c b/submodule.c > index 975bc87..eba9b42 100644 > --- a/submodule.c > +++ b/submodule.c > @@ -1001,3 +1001,67 @@ int merge_submodule(unsigned char result[20], const > char *path, > ... > + if (!fp) > + die(_("Could not create git link

[PATCH/RFC 2/3] Teach mv to move submodules using a gitfile

2013-04-03 Thread Jens Lehmann
When moving a submodule which uses a gitfile to point to the git directory stored in .git/modules/ 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 that b