Re: A few "linked checkout" niggles
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jul 17, 2015, 17:07 UTC
- Message-ID
- <CAPig+cSLs4-uKicVMBSKnEro_FYD722Hs1_U6qzTriM8Ciok2Q@mail.gmail.com>
- In-Reply-To
- <xmqqzj2u3j7m.fsf@gitster.dls.corp.google.com>
On Fri, Jul 17, 2015 at 11:19 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 20 quoted lines
> Duy Nguyen <pclouds@gmail.com> writes: > >> On Fri, Jul 17, 2015 at 7:27 PM, Michael J Gruber >> <git@drmicha.warpmail.net> wrote: >>> Two more observations: >>> >>> $ git worktree add /tmp/gitwt >>> Enter /tmp/gitwt (identifier gitwt) >>> Switched to a new branch 'gitwt' >>> >>> Now I'm in /tmp/gitwt at branch gitwt. Right? No. I'm in the original wd >>> at the original branch. >>> >>> So either we cd to the new location or quelch these messages or add a >>> message that we're actually back. >> >> s/Enter/Preparing/ ? > > Hmm, do we even need that message? I assumed it was a leftover > debugging stuff ;-)
It helps give context to messages which follow it, such as "Checking out files:..." and "HEAD is now at...", letting the user know that those messages apply to the new worktree rather than the current one. In this case, s/Enter/Preparing/ makes sense.
("Switched to a new branch..." is gone in 'pu'.)