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

Re: [PATCH] doc: Modify git-add doc to say "staging area"

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 14, 2017, 19:40 UTC
Message-ID
<xmqqfu8dt7wc.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<6382776C-175A-4E27-8D7C-385FFF167535@dwheeler.com>
"David A. Wheeler" <dwheeler@dwheeler.com> writes:
Show 6 quoted lines
> On December 14, 2017 1:50:00 PM EST, Junio C Hamano <gitster@pobox.com> wrote:
>>I agree with that.  I do not consider the proposed change "good".
>
> Why is "index" better? It is a confusing name, one that has many
> other unrelated meanings.  In particular, many projects managed by
> git also have an index, but few have a staging area.

That's an absurd argument. A database product that wants to be used in library systems are forbidden to have "index" because that may be confused with library index cards?

> Also, the phrase "staging area" is already in use, so this is not
> a new term (e.g., git-staging).

That gets us back to the "'X acts like Y' is different from 'X is Y'".

Besides, the phrase "staging area" is a near-sighted and narrow minded term. It focuses too much on working towards the next commit, and ignores there are other aspects that are equally important. When you check out historical revisions (without any intention of making new commits, just sightseeing), for example, the index does not act as "staging area" for creating a new commit. But it still serves Git users by keeping track of the list of paths that came from the HEAD, and recording their contents and the cached stat info for the working tree files (all using the pathnames as keys into these data items).

Previous: David A. WheelerNext: Ævar Arnfjörð Bjarmason
Message 11 of 15 in “doc: Modify git-add doc to say "staging area"”
  1. doc: Modify git-add doc to say "staging area"David A. Wheeler, Dec 13, 2017
  2. Jacob KellerDec 13, 2017
  3. David A. WheelerDec 13, 2017
  4. Ævar Arnfjörð BjarmasonDec 13, 2017
  5. David A. WheelerDec 14, 2017
  6. Ævar Arnfjörð BjarmasonDec 14, 2017
  7. Junio C HamanoDec 14, 2017
  8. Stefan BellerDec 14, 2017
  9. Junio C HamanoDec 14, 2017
  10. David A. WheelerDec 14, 2017
  11. Junio C HamanoDec 14, 2017
  12. Ævar Arnfjörð BjarmasonDec 14, 2017
  13. Junio C HamanoDec 13, 2017
  14. David A. WheelerDec 13, 2017
  15. Stefan BellerDec 14, 2017

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.