git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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'.)
Previous: Junio C HamanoNext: Eric Sunshine
Message 10 of 11 in “A few "linked checkout" niggles”
  1. Junio C HamanoJul 15, 2015
  2. Duy NguyenJul 16, 2015
  3. Eric SunshineJul 16, 2015
  4. Junio C HamanoJul 16, 2015
  5. Duy NguyenJul 16, 2015
  6. Eric SunshineJul 17, 2015
  7. Michael J GruberJul 17, 2015
  8. Duy NguyenJul 17, 2015
  9. Junio C HamanoJul 17, 2015
  10. Eric SunshineJul 17, 2015
  11. Eric SunshineJul 17, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.