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

Re: [RFC] git-add update with all-0 object

From
Linus Torvalds <torvalds@osdl.org>
Date
Dec 1, 2006, 07:10 UTC
Message-ID
<Pine.LNX.4.64.0611302306120.3695@woody.osdl.org>
In-Reply-To
<20061201045727.GA22622@thunk.org>
On Thu, 30 Nov 2006, Theodore Tso wrote:
>
> By the way, after thinking about this for a while, part of the problem
> is that the name "index" really sucks.
Hey, it was originally called "cache".

I don't care _what_ it's called, I just want people knowing about it, because hiding it will just cripple git (ie at the very least, when you hit a merge conflict, you really do want to to understand it if you ever want to go the the "next level").

If people are more comfortable just calling it the "staging area", and talking about it in those terms, I'll be happy.

Show 8 quoted lines
> Put another way, the reason why I think people are liking the whole
> "git add" and "git rm" suggestion is that it's a nice middle ground
> between the "hide the index" and the "shove the index in the user's
> face" approaches.  It's not that we are hiding the fact that there is
> this thing with the horribly chosen name "index", but instead we talk
> about this concept of a staging area and we don't dwell on things like
> the fact that it is a binary file which stores an efficient
> representation of a virtual directory.... blah blah blah.
Yes.

And even "git diff" isn't really a problem once you understand the staging area. If people feel worried, let them use "git diff HEAD". You won't need to use git for _that_ long until you realize that since the staging area is going to match the HEAD under normal circumstances (and when it doesn't, you actually tend to prefer to get the diff against the staging area _anyway_), you'll find people just starting to use "git diff" and not worry about it.

Previous: Jakub NarebskiNext: Daniel Barkalow
Message 11 of 15 in “[RFC] git-add update with all-0 object”
  1. Daniel BarkalowNov 30, 2006
  2. Johannes SchindelinNov 30, 2006
  3. Nicolas PitreNov 30, 2006
  4. Jakub NarebskiNov 30, 2006
  5. Nicolas PitreNov 30, 2006
  6. Linus TorvaldsNov 30, 2006
  7. Daniel BarkalowDec 1, 2006
  8. Theodore TsoDec 1, 2006
  9. Junio C HamanoDec 1, 2006
  10. Jakub NarebskiDec 2, 2006
  11. Linus TorvaldsDec 1, 2006
  12. Daniel BarkalowDec 1, 2006
  13. Andy ParkinsDec 1, 2006
  14. Jakub NarebskiDec 2, 2006
  15. Jakub NarebskiDec 2, 2006

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.