Re: [PATCH v3 3/4] refs: make refs/worktree/* per-worktree
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Aug 15, 2015, 08:04 UTC
- Message-ID
- <CACsJy8DSD2orHh0EqfF249fR_dgdZyABhgHubFW=LZ4VEpz+7w@mail.gmail.com>
- In-Reply-To
- <1439416645-19173-3-git-send-email-dturner@twopensource.com>
On Thu, Aug 13, 2015 at 4:57 AM, David Turner <dturner@twopensource.com> wrote:
Show 5 quoted lines
> We need a place to stick refs for bisects in progress that is not > shared between worktrees. So we use the refs/worktree/ hierarchy. > > The is_per_worktree_ref function and associated docs learn that > refs/worktree/ is per-worktree, as does the git_path code in path.c
I assume you want to iterate over all these per-worktree refs later on. Otherwise just moving bisect refs outside refs/ would automatically make them per-worktree. But then it would polute $GIT_DIR some more, so probably not the best move. So yeah, refs/worktree is probably for the best.
-- Duy