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

Re: [PATCH] cvsserver: Fix for work trees

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 9, 2007, 05:45 UTC
Message-ID
<7v1wedz2er.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<1186633570700-git-send-email-bdowning@lavos.net>
Hmmmmm....

This is a good fix to adjust to the new world order introduced by Dscho's rewrite of work-tree stuff, where the rules are:

 * When GIT_DIR is set and GIT_WORK_TREE is not, GIT_DIR is used
   to read config file, to figure out core.worktree.  When
   core.worktree is not set, a complicated algorithm is used to
   figure out the top of the working tree based on the value of
   GIT_DIR, and this can sometimes figure out that you are in a
   subdirectory of the working tree.  In such a case, you are in
   the working tree, but not necessarily at the top.
 * Otherwise, commands that require to have working tree now
   barf.  Earlier they always and consistently treated that your
   $cwd is the top of working tree and did not barf.

This new world order is probably an improvement, and if the rules were like this from the beginning, it would have been much nicer. However, this _is_ a change of semantics in the middle of the road, and probably we will see many fallouts like this. Unfortunate... I am torn between a cleaner semantics and the short-term pain...

Previous: Brian DowningNext: Johannes Schindelin
Message 2 of 3 in “cvsserver: Fix for work trees”
  1. cvsserver: Fix for work treesBrian Downing, Aug 9, 2007
  2. Junio C HamanoAug 9, 2007
  3. Johannes SchindelinAug 9, 2007

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.