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

Re: fixing workdirs

From
Avery Pennarun <apenwarr@gmail.com>
Date
Jul 8, 2010, 19:56 UTC
Message-ID
<AANLkTil1jhqfg-WsTq6g7tMhavG_CzJf01CBzXnd_nBx@mail.gmail.com>
In-Reply-To
<7v7hl5pxt0.fsf@alter.siamese.dyndns.org>
On Thu, Jul 8, 2010 at 3:40 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
> Pierre Habouzit <madcoder@madism.org> writes:
>> ... git checkout would check that no other workdir is currently "on
>> the same branch", and would refuse to checkout to a branch that is
>> already checkouted elsewhere.
>
> I am personally fine with this, but if there is no way to override this
> refusal it may break some people's existing workflow.  I dunno.

Perhaps it would be better to refuse to *update* a particular ref if some other worktree has it checked out? I don't think actually having multiple trees checked out to the same branch is a problem, so much as what happens when they start committing.

Have fun,
Avery
Previous: Junio C HamanoNext: Pierre Habouzit
Message 6 of 10 in “fixing workdirs”
  1. Pierre HabouzitJul 8, 2010
  2. TaitJul 8, 2010
  3. Joshua JensenJul 8, 2010
  4. Pierre HabouzitJul 9, 2010
  5. Junio C HamanoJul 8, 2010
  6. Avery PennarunJul 8, 2010
  7. Pierre HabouzitJul 9, 2010
  8. Junio C HamanoJul 9, 2010
  9. Pierre HabouzitJul 19, 2010
  10. Jan HudecAug 17, 2010

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.