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

Re: Worktree vs. working copy

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 20, 2011, 19:10 UTC
Message-ID
<7vhb476ned.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CALkWK0mHQZEPKk3Dy3RSp70thcsw3x6RSvUxTuPVzzRjgsM8-A@mail.gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
Show 13 quoted lines
> Hi Carlos,
>
> Carlos Martín Nieto writes:
>> [...]
>>    $ git grep 'worktree' | wc -l
>>    412
>>    $ git grep 'working copy' | grep -v ^git-cvsserver |  wc -l
>>    32
>> [...]
>
> You might like to refer to a related discussion [1].
>
> [1]: http://thread.gmane.org/gmane.comp.version-control.git/159287/focus=160083

Sorry, I do not see "working tree" discussion there. The discussion on that quoted thread was about remote-tracking branches, no?

Historically, we used to say "working tree" and "worktree" more or less interchangeably, and over time we tried to update the documentation to use "working tree" consistently, even though the latter is still seen in places like "GIT_WORK_TREE" environment variable (which will _not_ change).

But as far as I recall, we have never referred to the working tree controlled by a git repository as "working copy".

Previous: Ramkumar RamachandraNext: Carlos Martín Nieto
Message 5 of 7 in “Worktree vs. working copy”
  1. Carlos Martín NietoSep 20, 2011
  2. Michael HaggertySep 20, 2011
  3. Nguyen Thai Ngoc DuySep 20, 2011
  4. Ramkumar RamachandraSep 20, 2011
  5. Junio C HamanoSep 20, 2011
  6. Carlos Martín NietoSep 20, 2011
  7. Junio C HamanoSep 20, 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.