Re: [PATCH 3/8] refs: new ref types to make per-worktree refs visible to all worktrees
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Sep 23, 2018, 13:10 UTC
- Message-ID
- <CACsJy8BM=JH+z2yaMjqJpfXvSxjkagVNJAs7SPsiFJYw-eCYDg@mail.gmail.com>
- In-Reply-To
- <CAPig+cTtjwCMRMx2xS1WPyM30ipxx5QJK_Aueu50i-jLQdpdBA@mail.gmail.com>
On Sun, Sep 23, 2018 at 10:06 AM Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 11 quoted lines
> > On Sat, Sep 22, 2018 at 2:05 PM Nguyễn Thái Ngọc Duy <pclouds@gmail.com> wrote: > > [...] > > The main worktree has to be treated specially because well.. it's > > special from the beginning. So HEAD from the main worktree is > > acccessible via the name "main/HEAD" (we can't use > > "worktrees/main/HEAD" because "main" under "worktrees" is not > > reserved). > > Bikeshedding: I wonder if this would be more intuitive if called > simply "/HEAD" rather than "main/HEAD".
A ref name cannot start with '/'. I'm open to a different name than "main" though, it just felt a better name than "main-worktree".
-- Duy