Subject: Re: [PATCH 2/2] worktree.c: use submodule interface to access refs from another worktree

From: Junio C Hamano <[email-masked]>
Date: Wed, 08 Feb 2017 15:25:59 -0800

Nguyễn Thái Ngọc Duy  <[email-masked]> 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.