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

Re: [long] worktree setup cases

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 21, 2010, 23:06 UTC
Message-ID
<7vlj5rrvrd.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20101021190146.GC28700@nibiru.local>
Enrico Weigelt <weigelt@metux.de> writes:
Show 8 quoted lines
> * Junio C Hamano <gitster@pobox.com> wrote:
>
>> If you set GIT_DIR, we do no discovery, so git will work only from the
>> root level of the working tree (or bare repository operation) if you do
>> not tell us where the working tree is.
>
> Well, we could look at config whether it's an non-bare repo and then
> lookup worktree via core.worktree (which would default to "../").
core.worktree is "you tell us where the working tree is" in the above.
> BTW: the whole discovery process IMHO should start w/ looking for 
> the gitdir. Could be done this way:

That should be more or less what we have been doing since the first day we started supporting git operations from subdirectories around d288a70 ([PATCH] Make "git diff" work inside relative subdirectories, 2005-08-16).

It is possible that we might have broken some over the course while adding core.worktree and GIT_WORK_TREE support, but I doubt it.

Previous: Enrico Weigelt
Message 17 of 17 in “[long] worktree setup cases”
  1. Nguyen Thai Ngoc DuyOct 20, 2010
  2. Jonathan NiederOct 20, 2010
  3. Jonathan NiederOct 20, 2010
  4. Nguyen Thai Ngoc DuyOct 21, 2010
  5. Jonathan NiederOct 21, 2010
  6. Nguyen Thai Ngoc DuyOct 21, 2010
  7. Jonathan NiederOct 21, 2010
  8. Nguyen Thai Ngoc DuyOct 23, 2010
  9. Enrico WeigeltOct 21, 2010
  10. Nguyen Thai Ngoc DuyOct 22, 2010
  11. Enrico WeigeltOct 22, 2010
  12. .git file (Re: [long] worktree setup cases)Jonathan Nieder, Oct 22, 2010
  13. Nguyen Thai Ngoc DuyOct 22, 2010
  14. Junio C HamanoOct 20, 2010
  15. Nguyen Thai Ngoc DuyOct 21, 2010
  16. Enrico WeigeltOct 21, 2010
  17. Junio C HamanoOct 21, 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.