Re: [PATCH 2/2] worktree.c: use submodule interface to access refs from another worktree
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 8, 2017, 23:25 UTC
- Message-ID
- <xmqqr338tgc8.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20170208113144.8201-3-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
> As such, we can just linked worktree's path as a submodule. We just need
Lack of verb made me read this three times. "We can just treat linked worktree's path as if it were a submodule"?
I agree with you that the "submodule" in the name is misleading. We would want to be able to walk refs from other local repositories (and repository-like entities, like the .git/ thing in a liked worktree), like our own submodule, or the repository we borrow objects from via the alternate mechanism.