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

Re: [RFC] require-work-tree wants more than what its name says

From
Junio C Hamano <gitster@pobox.com>
Date
May 5, 2011, 17:31 UTC
Message-ID
<7v39kt9hr7.fsf@alter.siamese.dyndns.org>
In-Reply-To
<BANLkTinaoopUxOHC0XaUxMLXj4pCXND+UA@mail.gmail.com>
Sverre Rabbelier <srabbelier@gmail.com> writes:
> So do we need more tests for git-submodule to find out, or is this a
> hint to the submodule people to chime in? If so, should they be cc-ed?

I could queue a version without any conversion of in-tree users, so that stakeholders can verify and convert their use of require-work-tree to the new saner alternative one by one. Actually I tend to like that better.

I am not convinced myself if it is a sane use case to run "git pull" from a totally random place and let fetch and merge magically happen somewhere completely unrelated to your current working directory only because you have GIT_DIR and GIT_WORK_TREE set to begin with. After getting into a habit of relying on these environment variables so much that you do not even think about their existence, you will reach a point where you have no idea where to go offhand when a merge conflict actually happens and you have to go there to fix things up.

Previous: Sverre RabbelierNext: Michael J Gruber
Message 9 of 12 in “[RFC] require-work-tree wants more than what its name says”
  1. Junio C HamanoMay 3, 2011
  2. Jeff KingMay 4, 2011
  3. Junio C HamanoMay 4, 2011
  4. Jeff KingMay 4, 2011
  5. Junio C HamanoMay 5, 2011
  6. Jeff KingMay 5, 2011
  7. Jeff KingMay 5, 2011
  8. Sverre RabbelierMay 5, 2011
  9. Junio C HamanoMay 5, 2011
  10. Michael J GruberMay 4, 2011
  11. Jeff KingMay 4, 2011
  12. Junio C HamanoMay 4, 2011

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.