Re: git submodule vs GIT_WORK_TREE
- From
Richard Hartmann <richih.mailinglist@gmail.com>
- Date
- Jul 1, 2012, 10:34 UTC
- Message-ID
- <CAD77+gSu-RxtcyXqpF6+VanLh==_BJymTAnY2M_EiMz=b63F6g@mail.gmail.com>
- In-Reply-To
- <7vvci93k6k.fsf@alter.siamese.dyndns.org>
First of all, thanks for your detailed analysis; it cleared things up for me quite a bit.
I am not sure if this would work in all cases, but let's assume there is a new GIT_WORK_ROOT which will always point to the top level of a given repository (it would stay the same for submodules, as well).
As for storage of .git, GIT_DIR_ROOT would always point to a directory where git data is stored and GIT_DIR_NAME to the relative path within GIT_DIR_ROOT. Admittedly, this may be rather specific to vcsh, but I don't see any other (reliable) option to support submodules.
Thanks, Richard