Re: [PATCHv2 4/4] submodule: add embed-git-dir function
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 30, 2016, 21:39 UTC
- Message-ID
- <xmqqfum8d4w3.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CAGZ79kar0F7x5U2yZ30ZnWZ9b=EJA=1nT8rxTMRVJPggyFS_XA@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:
> git relocate-git-dir (--into-workingtree|--into-gitdir) \
I am not sure if you meant this as a submodule-specific subcommand or more general helper. "into-workingtree" suggests to me that it is submodule specific, so I'll base my response on that assumption.
Would there ever be a situation where you already have submodule repositories in the right place (according to the more modern practice, to keep them in .git/modules/ of superproject) and want to move them to embed them in worktrees of submodules? I do not think of any.
If there is no such situation, I do not think we want a verb that is direction-neutral (e.g. "move" or "relocate") with two options. Rather we would want "git submodule unembed-git-dir" or something like that.